]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: enable CMP0074
authorKefu Chai <kchai@redhat.com>
Mon, 16 Nov 2020 06:04:15 +0000 (14:04 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 16 Nov 2020 07:36:08 +0000 (15:36 +0800)
to search prefixes specified by the <PackageName>_ROOT CMake
variable and the <PackageName>_ROOT environment variable. find_package()
in CMake 3.12 started to use these prefixes if it is enabled.

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

index e2da7739c26fa2c308f46cd5874967c0c94daed1..a5c560fee6d9d865af0de9f0881fb7dedfe9adfe 100644 (file)
@@ -13,6 +13,7 @@ foreach(policy
     CMP0054
     CMP0056
     CMP0065
+    CMP0074
     CMP0075)
   if(POLICY ${policy})
     cmake_policy(SET ${policy} NEW)