summaryrefslogtreecommitdiff
path: root/Help
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-03 14:21:06 +0000
committerKitware Robot <kwrobot@kitware.com>2023-03-03 09:21:17 -0500
commit1150418769cc4fc81fb7dd9c0966f40b27461e33 (patch)
tree4d1f37da08e4cdc5538809dd427ace9d1f3260bd /Help
parent87330a10e29c2c4b4dacd60009dc29f1630de6b7 (diff)
parent2931f078dc66e56942470d7d4cf1d01f71f872a1 (diff)
downloadcmake-1150418769cc4fc81fb7dd9c0966f40b27461e33.tar.gz
Merge topic 'doc-block'
2931f078dc Help:cmake-language: note new block() command scope Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8276
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake-language.7.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Help/manual/cmake-language.7.rst b/Help/manual/cmake-language.7.rst
index a0d872fb5d..d0774cb989 100644
--- a/Help/manual/cmake-language.7.rst
+++ b/Help/manual/cmake-language.7.rst
@@ -530,6 +530,9 @@ of alphanumeric characters plus ``_`` and ``-``.
Variables have dynamic scope. Each variable "set" or "unset"
creates a binding in the current scope:
+Block Scope
+ The :command:`block` command may create a new scope for variable bindings.
+
Function Scope
`Command Definitions`_ created by the :command:`function` command
create commands that, when invoked, process the recorded commands