Help: Correct use of dots ([...]) in install command signatures

Only the short form of command have the [...] at
the end to indicate further possible arguments.
Repeating of a block is indicated by ..., not [...].
This commit is contained in:
Christoph Grüninger
2026-02-04 23:33:09 +01:00
parent 2c6c232d71
commit 01ea8dc368

View File

@@ -498,7 +498,7 @@ Signatures
[CONFIGURATIONS <config>...]
[COMPONENT <component>]
[OPTIONAL] [EXCLUDE_FROM_ALL]
] [...]
]...
)
The ``IMPORTED_RUNTIME_ARTIFACTS`` form specifies rules for installing the
@@ -819,7 +819,7 @@ Signatures
install([[SCRIPT <file>] [CODE <code>]]
[ALL_COMPONENTS | COMPONENT <component>]
[EXCLUDE_FROM_ALL] [...])
[EXCLUDE_FROM_ALL])
The ``SCRIPT`` form will invoke the given CMake script files during
installation. If the script file name is a relative path it will be
@@ -1138,7 +1138,7 @@ Signatures
[COMPONENT <component>]
[NAMELINK_COMPONENT <component>]
[OPTIONAL] [EXCLUDE_FROM_ALL]
] [...]
]...
[PRE_INCLUDE_REGEXES <regex>...]
[PRE_EXCLUDE_REGEXES <regex>...]
[POST_INCLUDE_REGEXES <regex>...]