summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-11-01 10:57:14 -0700
committerRussell Belfer <rb@github.com>2012-11-01 10:57:14 -0700
commitdbd6850d06111eb0761499d7c876ff7cd4ad57fa (patch)
tree09ff79eea708ec6002979471da4cdfb12bfaeca3
parentda0bfb6728df127e18fa2933b839b5920a84397a (diff)
downloadlibgit2-dbd6850d06111eb0761499d7c876ff7cd4ad57fa.tar.gz
Hide deprecations on MacOS
Why Apple, why?
-rw-r--r--CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 59c6b4388..85f86c00b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -104,6 +104,9 @@ ELSE ()
ELSE ()
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fPIC")
ENDIF ()
+ IF (APPLE) # Apple deprecated OpenSSL
+ SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations")
+ ENDIF ()
IF (PROFILE)
SET(CMAKE_C_FLAGS "-pg ${CMAKE_C_FLAGS}")
SET(CMAKE_EXE_LINKER_FLAGS "-pg ${CMAKE_EXE_LINKER_FLAGS}")