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 /Help/command/mark_as_advanced.rst | |
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 'Help/command/mark_as_advanced.rst')
-rw-r--r-- | Help/command/mark_as_advanced.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Help/command/mark_as_advanced.rst b/Help/command/mark_as_advanced.rst index 5712fb4..e52e623 100644 --- a/Help/command/mark_as_advanced.rst +++ b/Help/command/mark_as_advanced.rst @@ -22,3 +22,9 @@ If neither ``FORCE`` nor ``CLEAR`` is specified, new values will be marked as advanced, but if a variable already has an advanced/non-advanced state, it will not be changed. + +.. note:: + + Policy :policy:`CMP0102` affects the behavior of the ``mark_as_advanced`` + call. When set to ``NEW``, variables passed to this command which are not + already in the cache are ignored. See policy :policy:`CMP0102`. |