Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
264612c0
Commit
264612c0
authored
Jun 23, 2019
by
Craig Scott
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Help: Typo and grammar fixes in cmake_parse_arguments() docs
parent
5c788095
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
Help/command/cmake_parse_arguments.rst
Help/command/cmake_parse_arguments.rst
+8
-8
No files found.
Help/command/cmake_parse_arguments.rst
View file @
264612c0
...
...
@@ -55,17 +55,17 @@ For the ``<options>`` keywords, these will always be defined,
to ``TRUE`` or ``FALSE``, whether the option is in the argument list or not.
All remaining arguments are collected in a variable
``<prefix>_UNPARSED_ARGUMENTS`` that will be undefined if all argument
w
h
ere recognized. This can be checked afterwards to see
``<prefix>_UNPARSED_ARGUMENTS`` that will be undefined if all argument
s
were recognized. This can be checked afterwards to see
whether your macro was called with unrecognized parameters.
``<one_value_keywords>`` and ``<multi_value_keywords>`` that w
h
ere given no
``<one_value_keywords>`` and ``<multi_value_keywords>`` that were given no
values at all are collected in a variable ``<prefix>_KEYWORDS_MISSING_VALUES``
that will be undefined if all keywords received values. This can be checked
to see if there w
h
ere keywords without any values given.
to see if there were keywords without any values given.
As an
example
here a
``my_install()``
macro
, which takes similar
arguments
a
s
the real :command:`install` command:
Consider the following
example
macro,
``my_install()``, which takes similar
a
rguments to
the real :command:`install` command:
.. code-block:: cmake
...
...
@@ -99,8 +99,8 @@ the following variables::
You can then continue and process these variables.
Keywords terminate lists of values, e.g.
if directly after a
one_value_keyword another recognized keyword follows, this is
Keywords terminate lists of values, e.g. if directly after a
``
one_value_keyword
``
another recognized keyword follows, this is
interpreted as the beginning of the new option. E.g.
``my_install(TARGETS foo DESTINATION OPTIONAL)`` would result in
``MY_INSTALL_DESTINATION`` set to ``"OPTIONAL"``, but as ``OPTIONAL``
...
...
Brad King
@brad.king
mentioned in commit
394adf63
·
Jun 24, 2019
mentioned in commit
394adf63
mentioned in commit 394adf63c605327aaf969d662b26168d2b688229
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment