aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2014-02-02 21:41:32 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2014-02-02 21:41:32 +0100
commit31fb4e1e694bac9bdf134f298e13e82a8977eb4a (patch)
tree15e87b88238d0e8f405e8b0c7551e0d32d1051bf /cmake
parent3bdc2b1d4f1f0bb114b82f5e0b838e808b691d0a (diff)
downloadlibssh-31fb4e1e694bac9bdf134f298e13e82a8977eb4a.tar.gz
libssh-31fb4e1e694bac9bdf134f298e13e82a8977eb4a.tar.xz
libssh-31fb4e1e694bac9bdf134f298e13e82a8977eb4a.zip
build: remove OSX deprecated warnings for openssl
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/DefineCompilerFlags.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmake/Modules/DefineCompilerFlags.cmake b/cmake/Modules/DefineCompilerFlags.cmake
index 0ab8802c..bfbc38fc 100644
--- a/cmake/Modules/DefineCompilerFlags.cmake
+++ b/cmake/Modules/DefineCompilerFlags.cmake
@@ -75,3 +75,10 @@ if (MSVC)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /D _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES_COUNT=1")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /D _CRT_NONSTDC_NO_WARNINGS=1 /D _CRT_SECURE_NO_WARNINGS=1")
endif (MSVC)
+
+# This removes this annoying warning
+# "warning: 'BN_CTX_free' is deprecated: first deprecated in OS X 10.7 [-Wdeprecated-declarations]"
+if (OSX)
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations")
+endif (OSX)
+