mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
- Fix build with Clang 3.6
Upstreamed at: https://github.com/datastax/cpp-driver/pull/179 - Explicitely add static library
This commit is contained in:
parent
f1d8abf71b
commit
db109a97b6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=390463
2 changed files with 14 additions and 1 deletions
|
@ -17,7 +17,8 @@ GH_ACCOUNT= datastax
|
|||
GH_PROJECT= cpp-driver
|
||||
|
||||
USES= cmake:outsource
|
||||
CMAKE_ARGS= -DCMAKE_INSTALL_LIBDIR:STRING=lib
|
||||
CMAKE_ARGS= -DCMAKE_INSTALL_LIBDIR:STRING=lib \
|
||||
-DCASS_BUILD_STATIC:BOOL=ON
|
||||
|
||||
USE_LDCONFIG= yes
|
||||
USE_OPENSSL= yes
|
||||
|
|
12
databases/cassandra-cpp-driver/files/patch-CMakeLists.txt
Normal file
12
databases/cassandra-cpp-driver/files/patch-CMakeLists.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- CMakeLists.txt.orig 2015-05-18 16:31:48 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -421,6 +421,9 @@ elseif("${CMAKE_CXX_COMPILER_ID}" STREQU
|
||||
# Clang/Intel specific compiler options
|
||||
# I disabled long-long warning because boost generates about 50 such warnings
|
||||
set(WARNING_COMPILER_FLAGS "-Wall -pedantic -Wextra -Wno-long-long -Wno-unused-parameter -Wno-variadic-macros -Wno-zero-length-array")
|
||||
+ if(${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER "3.6")
|
||||
+ set(WARNING_COMPILER_FLAGS "${WARNING_COMPILER_FLAGS} -Wno-unused-local-typedef ")
|
||||
+ endif()
|
||||
|
||||
# OpenSSL is deprecated on later versions of Mac OS X. The long-term solution
|
||||
# is to provide a CommonCryto implementation.
|
Loading…
Add table
Reference in a new issue