Merge topic 'parent-scope-docs'

42fe7d21 Help: clarify PARENT_SCOPE behavior
This commit is contained in:
Brad King 2016-06-13 15:19:45 -04:00 committed by CMake Topic Stage
commit 1bafa0b3f5
1 changed files with 3 additions and 1 deletions

View File

@ -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
^^^^^^^^^^^^^^^