summaryrefslogtreecommitdiffstats
path: root/Help/command
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-06-13 19:19:45 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-06-13 19:19:45 (GMT)
commit1bafa0b3f5195d9a9c952f6ca4115fb8503f769b (patch)
treec37e41207a441564f381cb96d26774859fa9c3d0 /Help/command
parent8d80c8961fce8f4b38f412de664f773c213a69b8 (diff)
parent42fe7d215092dd1251a9ec298ca83a6ad9e59b86 (diff)
downloadCMake-1bafa0b3f5195d9a9c952f6ca4115fb8503f769b.zip
CMake-1bafa0b3f5195d9a9c952f6ca4115fb8503f769b.tar.gz
CMake-1bafa0b3f5195d9a9c952f6ca4115fb8503f769b.tar.bz2
Merge topic 'parent-scope-docs'
42fe7d21 Help: clarify PARENT_SCOPE behavior
Diffstat (limited to 'Help/command')
-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
^^^^^^^^^^^^^^^