cmMarkAsAdvancedCommand: ignore variables which don't exist in the cache

Fixes: #18331
This commit is contained in:
Ben Boeckel
2019-12-19 08:46:50 -05:00
parent 701a5c60e0
commit 3ec82b713e
15 changed files with 182 additions and 6 deletions

View File

@@ -23,6 +23,8 @@ warn by default:
policy :policy:`CMP0082`.
* ``CMAKE_POLICY_WARNING_CMP0089`` controls the warning for
policy :policy:`CMP0089`.
* ``CMAKE_POLICY_WARNING_CMP0102`` controls the warning for
policy :policy:`CMP0102`.
This variable should not be set by a project in CMake code. Project
developers running CMake may set this variable in their cache to