summaryrefslogtreecommitdiff
path: root/databases/cassandra-cpp-driver/files/patch-CMakeLists.txt
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2015-06-23 21:22:08 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2015-06-23 21:22:08 +0000
commitdb109a97b6a1966a6ff296f134ae876b13f79ecf (patch)
tree7bb83133ae4c4518b83516967d4a63eafcf8c1c7 /databases/cassandra-cpp-driver/files/patch-CMakeLists.txt
parentgraphics/copperspice: Doesn't even build on F10 amd64 (diff)
- Fix build with Clang 3.6
Upstreamed at: https://github.com/datastax/cpp-driver/pull/179 - Explicitely add static library
Notes
Notes: svn path=/head/; revision=390463
Diffstat (limited to '')
-rw-r--r--databases/cassandra-cpp-driver/files/patch-CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/databases/cassandra-cpp-driver/files/patch-CMakeLists.txt b/databases/cassandra-cpp-driver/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..c88ce9613e66
--- /dev/null
+++ b/databases/cassandra-cpp-driver/files/patch-CMakeLists.txt
@@ -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.