From: Kefu Chai Date: Wed, 18 Apr 2018 03:53:24 +0000 (+0800) Subject: cmake: use CMP0028 NEW X-Git-Tag: v13.1.0~172^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=750c301e1c3c446981a69431bb18ef249048edd9;p=ceph.git cmake: use CMP0028 NEW it's intended behavior to use imported or alias target for dependencies with name with "::" in it. Signed-off-by: Kefu Chai --- diff --git a/CMakeLists.txt b/CMakeLists.txt index bc4cb19bce0c..0d7a69969804 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)