diff options
author | Brad King <brad.king@kitware.com> | 2024-08-26 13:52:51 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2024-08-26 13:53:16 (GMT) |
commit | d625e832ede5605dfdee7213e88a912f4cd51fc9 (patch) | |
tree | e1b0539c08b4e29d5a1909b523087811a6ae2f67 /Help/command | |
parent | de05bc2f15227e28906d538833a3e12a5a812690 (diff) | |
parent | ceeea4e511d658b249615e5c98231f070aaedeb9 (diff) | |
download | CMake-d625e832ede5605dfdee7213e88a912f4cd51fc9.zip CMake-d625e832ede5605dfdee7213e88a912f4cd51fc9.tar.gz CMake-d625e832ede5605dfdee7213e88a912f4cd51fc9.tar.bz2 |
Merge topic 'cmake-parse-arguments-one-arg-empty-string'
ceeea4e511 cmake_parse_arguments: Set variable if empty string given after keyword
2f5cc6afa1 cmParseArgumentsCommand: Use cmStrCat() for string concatenation
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9748
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/cmake_parse_arguments.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Help/command/cmake_parse_arguments.rst b/Help/command/cmake_parse_arguments.rst index 0bb1d91..70dbeeb 100644 --- a/Help/command/cmake_parse_arguments.rst +++ b/Help/command/cmake_parse_arguments.rst @@ -70,6 +70,12 @@ whether your macro was called with unrecognized parameters. received values. This can be checked to see if there were keywords without any values given. +.. versionchanged:: 3.31 + If a ``<one_value_keyword>`` is followed by an empty string as its value, + policy :policy:`CMP0174` controls whether a corresponding + ``<prefix>_<keyword>`` variable is defined or not. + + Consider the following example macro, ``my_install()``, which takes similar arguments to the real :command:`install` command: |