Skip to content
Snippets Groups Projects
Commit 5e75fd6b authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'doc-cmake-build-signature' into release-3.21


161f1f42 Help: Clarify 'cmake --build' signature alternatives

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !6343
parents 00e82924 161f1f42
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 16 deletions
......@@ -408,7 +408,8 @@ project binary tree:
.. code-block:: shell
cmake --build [<dir> | --preset <preset>] [<options>] [-- <build-tool-options>]
cmake --build <dir> [<options>] [-- <build-tool-options>]
cmake --build --preset <preset> [<options>] [-- <build-tool-options>]
This abstracts a native build tool's command-line interface with the
following options:
......
......@@ -600,7 +600,10 @@ int do_build(int ac, char const* const* av)
if (dir.empty() && presetName.empty() && !listPresets) {
/* clang-format off */
std::cerr <<
"Usage: cmake --build [<dir> | --preset <preset>] [options] [-- [native-options]]\n"
"Usage: cmake --build <dir> "
" [options] [-- [native-options]]\n"
" cmake --build --preset <preset>"
" [options] [-- [native-options]]\n"
"Options:\n"
" <dir> = Project binary directory to be built.\n"
" --preset <preset>, --preset=<preset>\n"
......
^'--parallel' invalid number '12ab' given\.
+
Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
^The <jobs> value is too large\.
+
Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
^'--parallel' invalid number '12ab' given\.
+
Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
^The <jobs> value requires a positive integer argument\.
+
Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
^'-j' invalid number '12ab' given\.
+
Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
^The <jobs> value is too large\.
+
Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
^'-j' invalid number '12ab' given\.
+
Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
^The <jobs> value requires a positive integer argument\.
+
Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
^Error: Building 'clean' and other targets together is not supported\.
Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
^Error: Building 'clean' and other targets together is not supported\.
Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
^Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
^Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
^Unknown argument --invalid-command
Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
^Unknown argument --targetinvalid
Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
^Unknown argument -invalid-command
Usage: cmake --build \[<dir> \| --preset <preset>\] \[options\] \[-- \[native-options\]\]
Usage: cmake --build <dir> +\[options\] \[-- \[native-options\]\]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment