瀏覽代碼

Merge pull request #8208 from richardkchapman/osxwarn

HPCC-14913 Ignore deprecated warnings in OSX

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 9 年之前
父節點
當前提交
d171a39066
共有 2 個文件被更改,包括 8 次插入0 次删除
  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 ) 
 project( LdapSecurity ) 
 
 
+if (APPLE AND CMAKE_COMPILER_IS_CLANG)
+  SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated-declarations")
+endif()
+
 set (    SRCS 
 set (    SRCS 
          ../shared/authmap.cpp 
          ../shared/authmap.cpp 
          ../shared/caching.cpp 
          ../shared/caching.cpp 

+ 4 - 0
tools/initldap/CMakeLists.txt

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