summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2016-06-13 13:55:17 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2016-06-13 13:55:17 (GMT)
commit42fe7d215092dd1251a9ec298ca83a6ad9e59b86 (patch)
treeace3c59aa5640b5c52db4ab9243778c911f5020b /Help
parentd546456765072e6d4e6307eb6431de23f7bfe418 (diff)
downloadCMake-42fe7d215092dd1251a9ec298ca83a6ad9e59b86.zip
CMake-42fe7d215092dd1251a9ec298ca83a6ad9e59b86.tar.gz
CMake-42fe7d215092dd1251a9ec298ca83a6ad9e59b86.tar.bz2
Help: clarify PARENT_SCOPE behavior
Fixes #15093.
Diffstat (limited to 'Help')
-rw-r--r--Help/command/set.rst4
1 files changed, 3 insertions, 1 deletions
diff --git a/Help/command/set.rst b/Help/command/set.rst
index d04b880..b24ebef 100644
--- a/Help/command/set.rst
+++ b/Help/command/set.rst
@@ -25,7 +25,9 @@ If the ``PARENT_SCOPE`` option is given the variable will be set in
the scope above the current scope. Each new directory or function
creates a new scope. This command will set the value of a variable
into the parent directory or calling function (whichever is applicable
-to the case at hand).
+to the case at hand). The previous state of the variable's value stays the
+same in the current scope (e.g., if it was undefined before, it is still
+undefined and if it had a value, it is still that value).
Set Cache Entry
^^^^^^^^^^^^^^^