]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: disable warnings introduced by 457f023
authorKefu Chai <kchai@redhat.com>
Wed, 10 Feb 2016 05:16:34 +0000 (21:16 -0800)
committerKefu Chai <kchai@redhat.com>
Wed, 10 Feb 2016 05:20:06 +0000 (21:20 -0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt

index 506d59c826f284708597205c6f0af7dd35ef5e48..2bfef1c924af4fae2edad37ccc4c14a2049164ad 100644 (file)
@@ -7,6 +7,15 @@ if (NOT (CMAKE_MAJOR_VERSION LESS 3))
   # Tweak policies (this one disables "missing" dependency warning)
   cmake_policy(SET CMP0046 OLD)
 endif(NOT (CMAKE_MAJOR_VERSION LESS 3))
+# we use LINK_PRIVATE keyword instead of PRIVATE, but do not specify the LINK_PUBLIC
+# for target_link_libraries() command when PUBLIC should be used instead, it's just
+# for backward compatibility with cmake 2.8.11.
+if (POLICY CMP0022)
+cmake_policy(SET CMP0022 OLD)
+endif (POLICY CMP0022)
+if (POLICY CMP0023)
+cmake_policy(SET CMP0023 OLD)
+endif (POLICY CMP0023)
 
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules/")