mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-03 22:30:29 +00:00
Help: Add roles to abbreviate command-line options
Add a handful of helper roles that allow many more command-line option references to be written without explicit targets. Specifically, what used to be written ':option:`--foo[=bar] <program --foo>` can now be written ':program-option:`--foo`'. This allows many such references to be significantly shortened. For now, supported programs are 'cmake', 'cpack'. 'ctest', 'cmake--build' and 'cmake--install', which should cover most cases, but more can be trivially added. Additionally, this does not make a concerted effort to replace all existing uses, as it is intended mainly for use in future updates.
This commit is contained in:
@@ -29,7 +29,7 @@ underlying build system tool.
|
||||
|
||||
.. versionadded:: 3.21
|
||||
The ``PARALLEL_LEVEL`` argument can be used to set the
|
||||
:option:`--parallel <cmake--build --parallel>` flag.
|
||||
:cmake-build-option:`--parallel` flag.
|
||||
|
||||
.. code-block:: cmake
|
||||
|
||||
@@ -39,7 +39,7 @@ This second signature is deprecated, but still available for backwards
|
||||
compatibility. Use the first signature instead.
|
||||
|
||||
It sets the given ``<cachevariable>`` to a command-line string as
|
||||
above but without the :option:`--target <cmake--build --target>` option.
|
||||
above but without the :cmake-build-option:`--target` option.
|
||||
The ``<makecommand>`` is ignored but should be the full path to
|
||||
devenv, nmake, make or one of the end user build tools
|
||||
for legacy invocations.
|
||||
|
||||
Reference in New Issue
Block a user