summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2024-05-25 08:59:01 (GMT)
committerCraig Scott <craig.scott@crascit.com>2024-05-29 08:52:24 (GMT)
commit4370fcf7505bf0dc651478ab581f19c474278c59 (patch)
treeb50809ab854330bfb7cb8012f4121c28ec7e5974 /Source/cmPolicies.h
parentbc70b458adb6204fc47a6f19c3216fcac86573ce (diff)
downloadCMake-4370fcf7505bf0dc651478ab581f19c474278c59.zip
CMake-4370fcf7505bf0dc651478ab581f19c474278c59.tar.gz
CMake-4370fcf7505bf0dc651478ab581f19c474278c59.tar.bz2
FetchContent: Deprecate FetchContent_Populate(depName)
Projects should use FetchContent_MakeAvailable(depName) instead. Policy CMP0169 provides backward compatibility.
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 9dd3ce5..076066f 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -518,6 +518,10 @@ class cmMakefile;
SELECT(POLICY, CMP0168, \
"FetchContent implements steps directly instead of through a " \
"sub-build.", \
+ 3, 30, 0, cmPolicies::WARN) \
+ SELECT(POLICY, CMP0169, \
+ "FetchContent_Populate(depName) single-argument signature is " \
+ "deprecated.", \
3, 30, 0, cmPolicies::WARN)
#define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1)