]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: use CMP0028 NEW
authorKefu Chai <kchai@redhat.com>
Wed, 18 Apr 2018 03:53:24 +0000 (11:53 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 18 Apr 2018 07:10:54 +0000 (15:10 +0800)
it's intended behavior to use imported or alias target for dependencies
with name with "::" in it.

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

index bc4cb19bce0ca3c208b04d661f7e5d0a3216d769..0d7a6996980486bc75a05018a30f73e61d498800 100644 (file)
@@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 2.8.12)
 project(ceph CXX C ASM)
 set(VERSION 13.0.2)
 
+if(POLICY CMP0028)
+  cmake_policy(SET CMP0028 NEW)
+endif()
 if(POLICY CMP0046)
   # Tweak policies (this one disables "missing" dependency warning)
   cmake_policy(SET CMP0046 OLD)