summaryrefslogtreecommitdiffstats
path: root/Help/manual/cmake-presets.7.rst
diff options
context:
space:
mode:
Diffstat (limited to 'Help/manual/cmake-presets.7.rst')
-rw-r--r--Help/manual/cmake-presets.7.rst30
1 files changed, 18 insertions, 12 deletions
diff --git a/Help/manual/cmake-presets.7.rst b/Help/manual/cmake-presets.7.rst
index 49eb157..e3815b6 100644
--- a/Help/manual/cmake-presets.7.rst
+++ b/Help/manual/cmake-presets.7.rst
@@ -38,8 +38,8 @@ The root object recognizes the following fields:
``version``
- A required integer representing the version of the JSON schema. Currently,
- the only supported version is 1.
+ A required integer representing the version of the JSON schema.
+ The supported versions are ``1`` and ``2``.
``cmakeMinimumRequired``
@@ -70,14 +70,17 @@ The root object recognizes the following fields:
``configurePresets``
An optional array of `Configure Preset`_ objects.
+ This is allowed in preset files specifying version 1 or above.
``buildPresets``
An optional array of `Build Preset`_ objects.
+ This is allowed in preset files specifying version 2 or above.
``testPresets``
An optional array of `Test Preset`_ objects.
+ This is allowed in preset files specifying version 2 or above.
Configure Preset
^^^^^^^^^^^^^^^^
@@ -88,8 +91,8 @@ that may contain the following fields:
``name``
A required string representing the machine-friendly name of the preset.
- This identifier is used in the ``--preset`` argument. There must not be
- two presets in the union of ``CMakePresets.json`` and
+ This identifier is used in the :ref:`cmake --preset <CMake Options>` option.
+ There must not be two presets in the union of ``CMakePresets.json`` and
``CMakeUserPresets.json`` in the same directory with the same name.
``hidden``
@@ -306,8 +309,9 @@ that may contain the following fields:
``name``
A required string representing the machine-friendly name of the preset.
- This identifier is used in the ``--preset`` argument. There must not be
- two presets (configure, build, or test) in the union of
+ This identifier is used in the
+ :ref:`cmake --build --preset <Build Tool Mode>` option.
+ There must not be two presets (configure, build, or test) in the union of
``CMakePresets.json`` and ``CMakeUserPresets.json`` in the same
directory with the same name.
@@ -373,8 +377,9 @@ that may contain the following fields:
An optional string specifying the name of a configure preset to
associate with this build preset. If ``configurePreset`` is not
specified, it must be inherited from the inherits preset (unless this
- preset is hidden). The build tree directory is inferred from the
- configure preset.
+ preset is hidden). The build directory is inferred from the configure
+ preset, so the build will take place in the same ``binaryDir`` that the
+ configuration did.
``inheritConfigureEnvironment``
@@ -424,8 +429,8 @@ that may contain the following fields:
``name``
A required string representing the machine-friendly name of the preset.
- This identifier is used in the ``--preset`` argument. There must not be
- two presets (configure, build, or test) in the union of
+ This identifier is used in the :ref:`ctest --preset <CTest Options>` option.
+ There must not be two presets (configure, build, or test) in the union of
``CMakePresets.json`` and ``CMakeUserPresets.json`` in the same
directory with the same name.
@@ -491,8 +496,9 @@ that may contain the following fields:
An optional string specifying the name of a configure preset to
associate with this test preset. If ``configurePreset`` is not
specified, it must be inherited from the inherits preset (unless this
- preset is hidden). The build tree directory is inferred from the
- configure preset.
+ preset is hidden). The build directory is inferred from the configure
+ preset, so tests will run in the same ``binaryDir`` that the
+ configuration did and build did.
``inheritConfigureEnvironment``