mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-21 06:10:16 +08:00
presets: bump version to v5
Prepare for new test preset fields.
This commit is contained in:

committed by
Brad King

parent
4634de335b
commit
359e5b17d8
@@ -54,7 +54,7 @@ The root object recognizes the following fields:
|
|||||||
``version``
|
``version``
|
||||||
|
|
||||||
A required integer representing the version of the JSON schema.
|
A required integer representing the version of the JSON schema.
|
||||||
The supported versions are ``1``, ``2``, ``3``, and ``4``.
|
The supported versions are ``1``, ``2``, ``3``, ``4``, and ``5``.
|
||||||
|
|
||||||
``cmakeMinimumRequired``
|
``cmakeMinimumRequired``
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": 4,
|
"version": 5,
|
||||||
"cmakeMinimumRequired": {
|
"cmakeMinimumRequired": {
|
||||||
"major": 3,
|
"major": 3,
|
||||||
"minor": 21,
|
"minor": 21,
|
||||||
|
@@ -57,6 +57,21 @@
|
|||||||
"include": { "$ref": "#/definitions/include"}
|
"include": { "$ref": "#/definitions/include"}
|
||||||
},
|
},
|
||||||
"additionalProperties": false
|
"additionalProperties": false
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"properties": {
|
||||||
|
"version": {
|
||||||
|
"const": 5,
|
||||||
|
"description": "A required integer representing the version of the JSON schema."
|
||||||
|
},
|
||||||
|
"cmakeMinimumRequired": { "$ref": "#/definitions/cmakeMinimumRequired"},
|
||||||
|
"vendor": { "$ref": "#/definitions/vendor" },
|
||||||
|
"configurePresets": { "$ref": "#/definitions/configurePresetsV3"},
|
||||||
|
"buildPresets": { "$ref": "#/definitions/buildPresetsV4"},
|
||||||
|
"testPresets": { "$ref": "#/definitions/testPresetsV5"},
|
||||||
|
"include": { "$ref": "#/definitions/include"}
|
||||||
|
},
|
||||||
|
"additionalProperties": false
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"required": [
|
"required": [
|
||||||
@@ -821,8 +836,7 @@
|
|||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "An optional integer specifying the maximum width of a test name to output. Equivalent to passing --max-width on the command line."
|
"description": "An optional integer specifying the maximum width of a test name to output. Equivalent to passing --max-width on the command line."
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"additionalProperties": false
|
|
||||||
},
|
},
|
||||||
"filter": {
|
"filter": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
@@ -998,6 +1012,38 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"testPresetsV5": {
|
||||||
|
"type": "array",
|
||||||
|
"description": "An optional array of test preset objects. Used to specify arguments to ctest. Available in version 5 and higher.",
|
||||||
|
"allOf": [
|
||||||
|
{ "$ref": "#/definitions/testPresetsItemsV2" },
|
||||||
|
{ "$ref": "#/definitions/testPresetsItemsV3" }
|
||||||
|
],
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {},
|
||||||
|
"hidden": {},
|
||||||
|
"inherits": {},
|
||||||
|
"configurePreset": {},
|
||||||
|
"vendor": {},
|
||||||
|
"displayName": {},
|
||||||
|
"description": {},
|
||||||
|
"inheritConfigureEnvironment": {},
|
||||||
|
"environment": {},
|
||||||
|
"configuration": {},
|
||||||
|
"overwriteConfigurationFile": {},
|
||||||
|
"output": {},
|
||||||
|
"filter": {},
|
||||||
|
"execution": {},
|
||||||
|
"condition": {}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"name"
|
||||||
|
],
|
||||||
|
"additionalProperties": false
|
||||||
|
}
|
||||||
|
},
|
||||||
"testPresetsV3": {
|
"testPresetsV3": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "An optional array of test preset objects. Used to specify arguments to ctest. Available in version 3 and higher.",
|
"description": "An optional array of test preset objects. Used to specify arguments to ctest. Available in version 3 and higher.",
|
||||||
|
@@ -33,7 +33,7 @@ using TestPreset = cmCMakePresetsGraph::TestPreset;
|
|||||||
using ArchToolsetStrategy = cmCMakePresetsGraph::ArchToolsetStrategy;
|
using ArchToolsetStrategy = cmCMakePresetsGraph::ArchToolsetStrategy;
|
||||||
|
|
||||||
constexpr int MIN_VERSION = 1;
|
constexpr int MIN_VERSION = 1;
|
||||||
constexpr int MAX_VERSION = 4;
|
constexpr int MAX_VERSION = 5;
|
||||||
|
|
||||||
struct CMakeVersion
|
struct CMakeVersion
|
||||||
{
|
{
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": 4
|
"version": 5
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": 4,
|
"version": 5,
|
||||||
"configurePresets": [
|
"configurePresets": [
|
||||||
{
|
{
|
||||||
"name": "default",
|
"name": "default",
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 5,
|
||||||
"configurePresets": [
|
"configurePresets": [
|
||||||
{
|
{
|
||||||
"name": "default",
|
"name": "default",
|
||||||
|
Reference in New Issue
Block a user