From 17002650812bdba2a1ff323a32c99804577624e5 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sun, 29 Nov 2015 19:19:09 +0800 Subject: [PATCH] osx clang quench deprecated api errors after approach by redhat https://bugzilla.redhat.com/show_bug.cgi?id=1155181 Signed-off-by: Andy Green --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 712811ac..31419c1e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -487,6 +487,11 @@ if (CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX OR (CMAKE_C_COMPILER_ID endif(UNIX) endif () +if ((CMAKE_C_COMPILER_ID MATCHES "Clang") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang")) + # otherwise osx blows a bunch of openssl deprecated api errors + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-deprecated-declarations" ) +endif() + source_group("Headers Private" FILES ${HDR_PRIVATE}) source_group("Headers Public" FILES ${HDR_PUBLIC}) source_group("Sources" FILES ${SOURCES})