diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2019-12-19 13:46:50 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2020-01-20 20:49:29 (GMT) |
commit | 3ec82b713e51711df0c70f539aea62fc16dd3060 (patch) | |
tree | 90ce909e0cdc41e5308c83da1c03af9bbfdf1e8a /Source/cmPolicies.h | |
parent | 701a5c60e059a53ebf458174253811167c1ae3fc (diff) | |
download | CMake-3ec82b713e51711df0c70f539aea62fc16dd3060.zip CMake-3ec82b713e51711df0c70f539aea62fc16dd3060.tar.gz CMake-3ec82b713e51711df0c70f539aea62fc16dd3060.tar.bz2 |
cmMarkAsAdvancedCommand: ignore variables which don't exist in the cache
Fixes: #18331
Diffstat (limited to 'Source/cmPolicies.h')
-rw-r--r-- | Source/cmPolicies.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmPolicies.h b/Source/cmPolicies.h index eef41c0..1366ff0 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) \ |