diff options
author | Daniele E. Domenichelli <daniele.domenichelli@iit.it> | 2013-11-18 13:30:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-11-19 14:01:54 (GMT) |
commit | f0db2e38984c7ac2e2da082b88ec52f378651891 (patch) | |
tree | e06c2196b9cbff6f0794fa3f462de2cb1f00e495 /Help/command/list.rst | |
parent | e099a37afa43bbe00f4a3bade40851b31c025147 (diff) | |
download | CMake-f0db2e38984c7ac2e2da082b88ec52f378651891.zip CMake-f0db2e38984c7ac2e2da082b88ec52f378651891.tar.gz CMake-f0db2e38984c7ac2e2da082b88ec52f378651891.tar.bz2 |
Help: Document macro argument caveats in more detail
Add notes about macro arguments in the foreach, if, and list commands.
Add a section to the macro command documentation explaining in detail
how macro arguments are not variables.
Diffstat (limited to 'Help/command/list.rst')
-rw-r--r-- | Help/command/list.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Help/command/list.rst b/Help/command/list.rst index f044dba..aeb1e94 100644 --- a/Help/command/list.rst +++ b/Help/command/list.rst @@ -50,7 +50,8 @@ propagation. NOTES: A list in cmake is a ; separated group of strings. To create a list the set command can be used. For example, set(var a b c d e) creates a list with a;b;c;d;e, and set(var "a b c d e") creates a -string or a list with one item in it. +string or a list with one item in it. (Note macro arguments are not +variables, and therefore cannot be used in LIST commands.) When specifying index values, if <element index> is 0 or greater, it is indexed from the beginning of the list, with 0 representing the |