mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-10 07:40:03 -06:00
Merge topic 'doc-block' into release-3.26
2931f078dc Help:cmake-language: note new block() command scope
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8276
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user