Browse Source

Merge pull request #8208 from richardkchapman/osxwarn

HPCC-14913 Ignore deprecated warnings in OSX

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 9 years ago
parent
commit
d171a39066
2 changed files with 8 additions and 0 deletions
  1. 4 0
      system/security/LdapSecurity/CMakeLists.txt
  2. 4 0
      tools/initldap/CMakeLists.txt

+ 4 - 0
system/security/LdapSecurity/CMakeLists.txt

@@ -24,6 +24,10 @@
 
 project( LdapSecurity ) 
 
+if (APPLE AND CMAKE_COMPILER_IS_CLANG)
+  SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
+endif()
+
 set (    SRCS 
          ../shared/authmap.cpp 
          ../shared/caching.cpp 

+ 4 - 0
tools/initldap/CMakeLists.txt

@@ -25,6 +25,10 @@
 
 project( initldap )
 
+if (APPLE AND CMAKE_COMPILER_IS_CLANG)
+  SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
+endif()
+
 set (    SRCS
          initldap.cpp
     )