]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: silence CMP0054 warning 18938/head
authorKefu Chai <kchai@redhat.com>
Mon, 27 Nov 2017 04:39:41 +0000 (12:39 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 27 Nov 2017 04:50:38 +0000 (12:50 +0800)
see https://gitlab.kitware.com/cmake/cmake/issues/17381 and
https://gitlab.kitware.com/cmake/cmake/commit/a8be8b1b54fe1922a1d1fc0365c3ae5c918b6654,
so before the updated cmake is released and packaged. we should
add this setting.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt

index 5a9360b604c55d2163a819ccd2bd0245a6b81e70..bba56a3676dfc9424c003d18f8bfb38b56949f88 100644 (file)
@@ -7,6 +7,9 @@ if(POLICY CMP0046)
   # Tweak policies (this one disables "missing" dependency warning)
   cmake_policy(SET CMP0046 OLD)
 endif()
+if(POLICY CMP0054)
+  cmake_policy(SET CMP0054 NEW)
+endif()
 if(POLICY CMP0056)
   cmake_policy(SET CMP0056 NEW)
 endif()