summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorFeRD (Frank Dana) <ferdnyc@gmail.com>2023-08-30 18:35:04 (GMT)
committerCraig Scott <craig.scott@crascit.com>2023-09-01 11:28:56 (GMT)
commit2f319c6484a997ca957b9ca25dd69ca52ba97de5 (patch)
tree1336d783c9f5ae0025ab5fdf332fa09e575332d3 /Help
parent9eecdc7ab7141e6bbd3289ed0172e942e20ace05 (diff)
downloadCMake-2f319c6484a997ca957b9ca25dd69ca52ba97de5.zip
CMake-2f319c6484a997ca957b9ca25dd69ca52ba97de5.tar.gz
CMake-2f319c6484a997ca957b9ca25dd69ca52ba97de5.tar.bz2
Help: Remove "this command" ambiguity in set() docs
Diffstat (limited to 'Help')
-rw-r--r--Help/command/set.rst11
1 files changed, 6 insertions, 5 deletions
diff --git a/Help/command/set.rst b/Help/command/set.rst
index aeb88b3..fa635c6 100644
--- a/Help/command/set.rst
+++ b/Help/command/set.rst
@@ -27,11 +27,12 @@ Set Normal Variable
If the ``PARENT_SCOPE`` option is given the variable will be set in
the scope above the current scope. Each new directory or :command:`function`
command creates a new scope. A scope can also be created with the
- :command:`block` command. This command will set the value of a variable into
- the parent directory, calling function or encompassing scope (whichever is
- applicable 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).
+ :command:`block` command. ``set(PARENT_SCOPE)`` will set the value
+ of a variable into the parent directory, calling function, or
+ encompassing scope (whichever is applicable 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).
The :command:`block(PROPAGATE)` and :command:`return(PROPAGATE)` commands
can be used as an alternate method to the :command:`set(PARENT_SCOPE)`