1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-16 22:37:30 +08:00

Help: Mention version 2 in cmake-presets(7)

Version 2 is required for build and test presets.

Fixes: #21829
This commit is contained in:
Brad King
2021-02-18 10:25:07 -05:00
parent cdbd1ae64b
commit dd6165fbd4

View File

@@ -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
^^^^^^^^^^^^^^^^