summaryrefslogtreecommitdiff
path: root/Source/cmPolicies.h
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2019-12-19 08:46:50 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2020-01-20 15:49:29 -0500
commit3ec82b713e51711df0c70f539aea62fc16dd3060 (patch)
tree90ce909e0cdc41e5308c83da1c03af9bbfdf1e8a /Source/cmPolicies.h
parent701a5c60e059a53ebf458174253811167c1ae3fc (diff)
downloadcmake-3ec82b713e51711df0c70f539aea62fc16dd3060.tar.gz
cmMarkAsAdvancedCommand: ignore variables which don't exist in the cache
Fixes: #18331
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 eef41c089b..1366ff089b 100644
--- a/Source/cmPolicies.h
+++ b/Source/cmPolicies.h
@@ -302,7 +302,10 @@ class cmMakefile;
17, 0, cmPolicies::WARN) \
SELECT(POLICY, CMP0101, \
"target_compile_options honors BEFORE keyword in all scopes.", 3, \
- 17, 0, cmPolicies::WARN)
+ 17, 0, cmPolicies::WARN) \
+ SELECT(POLICY, CMP0102, \
+ "mark_as_advanced() does nothing if a cache entry does not exist.", \
+ 3, 17, 0, cmPolicies::WARN)
#define CM_SELECT_ID(F, A1, A2, A3, A4, A5, A6) F(A1)
#define CM_FOR_EACH_POLICY_ID(POLICY) \