summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoachim Wuttke (l) <j.wuttke@fz-juelich.de>2018-11-12 21:36:35 (GMT)
committerJoachim Wuttke (o) <j.wuttke@fz-juelich.de>2018-11-13 11:14:55 (GMT)
commitdcf11cbcdcfc15f44e07821ded87252ec31bc40b (patch)
treec2ace534264bc80fb3972bed0039f62d82b40656
parent5e12fad8704e4797ecda3906f3b558775b70539f (diff)
downloadCMake-dcf11cbcdcfc15f44e07821ded87252ec31bc40b.zip
CMake-dcf11cbcdcfc15f44e07821ded87252ec31bc40b.tar.gz
CMake-dcf11cbcdcfc15f44e07821ded87252ec31bc40b.tar.bz2
Help: Mention endmacro argument as legacy only.
Same change as previously done for function, if, while, ...
-rw-r--r--Help/command/macro.rst7
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.