summaryrefslogtreecommitdiffstats
path: root/Help/command/cmake_parse_arguments.rst
Commit message (Collapse)AuthorAgeFilesLines
* cmake_parse_arguments: add KEYWORDS_MISSING_VALUESTorsten Robitzki2019-02-071-3/+11
| | | | | | | Add KEYWORDS_MISSING_VALUES output variable to cmake_parse_arguments() to allow to detect keywords that received no values. Fixes: #18706
* Help: Revise docs on Scripting CommandsJoachim Wuttke (l)2018-10-231-10/+12
| | | | | | | | | | | | | | | | | | | Revise docs for all "Scripting Commands", except four find_XXX that use a macro suite of their own. * Take full advantage of the improved syntax highlighting. * Make consequential use of <..> placeholders. * Clarify things here and there in the text. Specific improvements to some command docs: * "math": Correct description of novel hexadecimal capability. * "if", "foreach", "while": Provide link to "endif" etc * "foreach", "while": Mention "break" and "continue". * "foreach": Simplify explanation of ``RANGE`` and ``IN`` signatures; advise against negative arguments or reverse ranges (compare issue #18461) * "endif", "endfunction" etc: Explain that the argument is optional and maintained for compatibility only
* Help: Fix code example in cmake_parse_arguments.rstKai Wolf2018-02-041-1/+1
|
* Help: Fix cmake_parse_arguments behavior for not found argumentsSylvain Joubert2017-10-201-10/+13
| | | | | Value keywords are actually UNDEFINED rather than set to the empty string when they are not found in the argument list.
* cmake_parse_arguments: Add option to read arguments from ARGC/ARGV#Bill Hoffman2016-09-081-0/+11
| | | | | | | | | The `ARGC`/`ARGV#` variables in function scope hold the original arguments with no ;-list flattening. Add a way for functions to cleanly parse arguments that may contain `;`. This also avoids extra copying of the arguments. Co-Author: Brad King <brad.king@kitware.com>
* cmake_parse_arguments: consider duplicate keyword as warningMatthias Maennich2015-12-171-0/+7
| | | | | | The behaviour of double specified keywords is rather undefined or at least not clearly documented. This change introduces a strict check and emits a warning in case a keyword has been specified more than once.
* CMakeParseArguments: replace by native cmake_parse_arguments commandMatthias Maennich2015-12-171-0/+78
Implement a native `cmake_parse_arguments` command that is fully compatible with the documented behaviour of the previous implementation. Leave the CMakeParseArguments module empty but existing for compatibility.