summaryrefslogtreecommitdiffstats
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-03-04 18:20:50 (GMT)
committerBrad King <brad.king@kitware.com>2022-03-04 18:55:12 (GMT)
commit30313aa72166ef06cde8c64ab1e582f8a242502e (patch)
treedce3c7dbe42dc55cd68912e8efe338f498dacb2e /Source/cmPolicies.h
parent8895284e115648ecfed020af2e55403341f3dd76 (diff)
downloadCMake-30313aa72166ef06cde8c64ab1e582f8a242502e.zip
CMake-30313aa72166ef06cde8c64ab1e582f8a242502e.tar.gz
CMake-30313aa72166ef06cde8c64ab1e582f8a242502e.tar.bz2
while: diagnose errors during condition evaluation
Add a policy to diagnose condition errors in a compatible way. Fixes: #23296
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r--Source/cmPolicies.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h
index 99e2eb6..7d4012d 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -388,7 +388,9 @@ class cmMakefile;
22, 0, cmPolicies::WARN) \
SELECT(POLICY, CMP0129, \
"Compiler id for MCST LCC compilers is now LCC, not GNU.", 3, 23, 0, \
- cmPolicies::WARN)
+ cmPolicies::WARN) \
+ SELECT(POLICY, CMP0130, "while() diagnoses condition evaluation errors.", \
+ 3, 24, 0, cmPolicies::WARN)
#define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1)
#define CM_FOR_EACH_POLICY_ID(POLICY) \