summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacques Germishuys <jacquesg@striata.com>2014-04-18 19:13:18 +0200
committerJacques Germishuys <jacquesg@striata.com>2014-04-18 19:13:18 +0200
commit364ef52881f98293a5e454aab447bc7c2a3d3725 (patch)
tree9ce56faf87c4e51b4263ebde1601891cc883182f
parentc6cd3f8bde4aeaad60139dd41a3ed5542dd2ab4f (diff)
downloadlibgit2-364ef52881f98293a5e454aab447bc7c2a3d3725.tar.gz
Only disable deprecation warnings on Apple for OpenSSL
-rw-r--r--CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5a87181b4..6305be824 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -340,9 +340,11 @@ ELSE ()
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function")
ENDIF()
- CHECK_C_COMPILER_FLAG(-Wno-deprecated-declarations DEPRECATED_DECLARATIONS_WARNING)
- IF(DEPRECATED_DECLARATIONS_WARNING)
- SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations")
+ IF (APPLE) # Apple deprecated OpenSSL
+ CHECK_C_COMPILER_FLAG(-Wno-deprecated-declarations DEPRECATED_DECLARATIONS_WARNING)
+ IF(DEPRECATED_DECLARATIONS_WARNING)
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations")
+ ENDIF()
ENDIF()
IF (PROFILE)