summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2021-02-16 15:29:37 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2021-02-18 13:30:55 (GMT)
commit79eaa908dc2ad339d5f92b10a30c4244975ab21a (patch)
tree822684b66b9a891c3c9e92ff1fdd8838fd28b45f /Source/cmPolicies.h
parent1f1fdff7fa9f51ccdc91232606a6ade20e02d83f (diff)
downloadCMake-79eaa908dc2ad339d5f92b10a30c4244975ab21a.zip
CMake-79eaa908dc2ad339d5f92b10a30c4244975ab21a.tar.gz
CMake-79eaa908dc2ad339d5f92b10a30c4244975ab21a.tar.bz2
cmListCommand: add a policy for failing on invalid indicies
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 2194b0f..9295a3f 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -359,7 +359,10 @@ class cmMakefile;
3, 20, 0, cmPolicies::WARN) \
SELECT(POLICY, CMP0120, \
"The WriteCompilerDetectionHeader module is removed.", 3, 20, 0, \
- cmPolicies::WARN)
+ cmPolicies::WARN) \
+ SELECT(POLICY, CMP0121, \
+ "The list() command now validates parsing of index arguments.", 3, \
+ 21, 0, cmPolicies::WARN)
#define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1)
#define CM_FOR_EACH_POLICY_ID(POLICY) \