From b90ae70a3b3c77109a31dfc275b778205a817d1a Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (l)" Date: Wed, 14 Nov 2018 09:10:31 +0100 Subject: Help: in macro vs function example, use lowercase names. Follow our own advise not to change cases. Omit the leading underscore. --- Help/command/macro.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Help/command/macro.rst b/Help/command/macro.rst index e15e206..7450929 100644 --- a/Help/command/macro.rst +++ b/Help/command/macro.rst @@ -98,18 +98,18 @@ existing variable instead of the arguments. For example: .. code-block:: cmake - macro(_BAR) + macro(bar) foreach(arg IN LISTS ARGN) endforeach() endmacro() - function(_FOO) - _bar(x y z) + function(foo) + bar(x y z) endfunction() - _foo(a b c) + foo(a b c) -Will loop over ``a;b;c`` and not over ``x;y;z`` as one might be expecting. +Will loop over ``a;b;c`` and not over ``x;y;z`` as one might have expected. If you want true CMake variables and/or better CMake scope control you should look at the function command. -- cgit v0.12