mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-19 02:17:27 +08:00
Help: Replace mentions of `-C
option with :option:
-C` role
This commit is contained in:
@@ -207,8 +207,8 @@ following fields in the root:
|
|||||||
set.
|
set.
|
||||||
|
|
||||||
``buildConfig``
|
``buildConfig``
|
||||||
The build configuration given to CPack with the ``-C`` option. Only present
|
The build configuration given to CPack with the :option:`cpack -C` option.
|
||||||
if this option is set.
|
Only present if this option is set.
|
||||||
|
|
||||||
``defaultDirectoryPermissions``
|
``defaultDirectoryPermissions``
|
||||||
The default directory permissions given in
|
The default directory permissions given in
|
||||||
|
@@ -66,10 +66,9 @@ run:
|
|||||||
cmake -S /path/to/source -B /path/to/source/build -G Ninja
|
cmake -S /path/to/source -B /path/to/source/build -G Ninja
|
||||||
|
|
||||||
In cases where a preset contains lots of cache variables, and passing all of
|
In cases where a preset contains lots of cache variables, and passing all of
|
||||||
them as ``-D`` flags would cause the command line length limit of the platform
|
them as :option:`-D <cmake -D>` flags would cause the command line length limit
|
||||||
to be exceeded, the IDE should instead construct a temporary cache script and
|
of the platform to be exceeded, the IDE should instead construct a temporary
|
||||||
pass it with the ``-C`` flag. See :ref:`CMake Options` for details on how the
|
cache script and pass it with the :option:`-C <cmake -C>` flag.
|
||||||
``-C`` flag is used.
|
|
||||||
|
|
||||||
While reading, parsing, and evaluating the contents of ``CMakePresets.json`` is
|
While reading, parsing, and evaluating the contents of ``CMakePresets.json`` is
|
||||||
straightforward, it is not trivial. In addition to the documentation, IDE
|
straightforward, it is not trivial. In addition to the documentation, IDE
|
||||||
|
@@ -38,8 +38,8 @@ binary directory run:
|
|||||||
|
|
||||||
cpack
|
cpack
|
||||||
|
|
||||||
To specify the generator, use the ``-G`` option. For multi-config builds, use
|
To specify the generator, use the :option:`-G <cpack -G>` option. For multi-config builds,
|
||||||
``-C`` to specify the configuration. For example:
|
use :option:`-C <cpack -C>` to specify the configuration. For example:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
|
@@ -351,7 +351,7 @@ on the command line can be modified using the
|
|||||||
|
|
||||||
The :manual:`cmake(1)` tool allows specifying a
|
The :manual:`cmake(1)` tool allows specifying a
|
||||||
file to use to populate the initial cache using
|
file to use to populate the initial cache using
|
||||||
the ``-C`` option. This can be useful to simplify
|
the :option:`-C <cmake -C>` option. This can be useful to simplify
|
||||||
commands and scripts which repeatedly require the
|
commands and scripts which repeatedly require the
|
||||||
same cache entries.
|
same cache entries.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user