summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2024-05-28 12:56:25 (GMT)
committerCraig Scott <craig.scott@crascit.com>2024-05-29 10:39:17 (GMT)
commitf588421b58f23b192670ad686e2797a09489a096 (patch)
treecbf003f0f9ddcb6aa049081ba238e43607b67825 /Source/cmPolicies.h
parent4370fcf7505bf0dc651478ab581f19c474278c59 (diff)
downloadCMake-f588421b58f23b192670ad686e2797a09489a096.zip
CMake-f588421b58f23b192670ad686e2797a09489a096.tar.gz
CMake-f588421b58f23b192670ad686e2797a09489a096.tar.bz2
FetchContent: Enforce FETCHCONTENT_FULLY_DISCONNECTED requirements
FETCHCONTENT_FULLY_DISCONNECTED should only be set to true if each dependency's source directory has already been populated. Previously, this wasn't being checked, but now it is (subject to a new policy).
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 076066f..d893c44 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -522,7 +522,10 @@ class cmMakefile;
SELECT(POLICY, CMP0169, \
"FetchContent_Populate(depName) single-argument signature is " \
"deprecated.", \
- 3, 30, 0, cmPolicies::WARN)
+ 3, 30, 0, cmPolicies::WARN) \
+ SELECT(POLICY, CMP0170, \
+ "FETCHCONTENT_FULLY_DISCONNECTED requirements are enforced.", 3, 30, \
+ 0, cmPolicies::WARN)
#define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1)
#define CM_FOR_EACH_POLICY_ID(POLICY) \