From: Kefu Chai Date: Mon, 27 Nov 2017 04:39:41 +0000 (+0800) Subject: cmake: silence CMP0054 warning X-Git-Tag: v13.0.1~79^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18938%2Fhead;p=ceph.git cmake: silence CMP0054 warning 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a9360b604c5..bba56a3676df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()