diff options
author | Brad King <brad.king@kitware.com> | 2018-11-13 18:40:48 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-11-13 18:40:55 (GMT) |
commit | 3603b3964b308273725198cafdc2ce78a80fa862 (patch) | |
tree | c48b2a6020a37d5ce87272b66e869dfec6df7c4d /Help | |
parent | 9fee70422783af120bdaeff62ba77a71226f611d (diff) | |
parent | dcf11cbcdcfc15f44e07821ded87252ec31bc40b (diff) | |
download | CMake-3603b3964b308273725198cafdc2ce78a80fa862.zip CMake-3603b3964b308273725198cafdc2ce78a80fa862.tar.gz CMake-3603b3964b308273725198cafdc2ce78a80fa862.tar.bz2 |
Merge topic 'macro'
dcf11cbcdc Help: Mention endmacro argument as legacy only.
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2606
Diffstat (limited to 'Help')
-rw-r--r-- | Help/command/macro.rst | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Help/command/macro.rst b/Help/command/macro.rst index 2746b1b..287855b 100644 --- a/Help/command/macro.rst +++ b/Help/command/macro.rst @@ -7,7 +7,7 @@ Start recording a macro for later invocation as a command macro(<name> [<arg1> ...]) <commands> - endmacro(<name>) + endmacro() Defines a macro named ``<name>`` that takes arguments named ``<arg1>``, ... @@ -31,6 +31,11 @@ behavior. Checking that ``${ARGC}`` is greater than ``#`` is the only way to ensure that ``${ARGV#}`` was passed to the function as an extra argument. +Per legacy, the :command:`endmacro` command admits an optional +``<name>`` argument. If used, it must be a verbatim repeat of the +argument of the opening ``macro`` command. + + See the :command:`cmake_policy()` command documentation for the behavior of policies inside macros. |