Type object
File match CMakePresets.json CMakeUserPresets.json
Schema URL https://catalog.lintel.tools/schemas/schemastore/cmake-presets/latest.json
Source https://raw.githubusercontent.com/Kitware/CMake/master/Help/manual/presets/schema.json

Validate with Lintel

npx @lintel/lintel check
Type: object

The presets specify the generator and the build directory, and optionally a list of variables and other arguments to pass to CMake.

One of

1. object object
version const: 1

A required integer representing the version of the JSON schema.

Constant: 1
cmakeMinimumRequired object

An optional object representing the minimum version of CMake needed to build this project. Available in version 1 and higher.

vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, the keys should be a vendor-specific domain name followed by a /-separated path. For example, the Example IDE 1.0 could use example.com/ExampleIDE/1.0. The value of each field can be anything desired by the vendor, though will typically be a map.

configurePresets object[]

An optional array of configure preset objects. Available in version 1 and higher.

2. object object
version const: 2

A required integer representing the version of the JSON schema.

Constant: 2
cmakeMinimumRequired object

An optional object representing the minimum version of CMake needed to build this project. Available in version 1 and higher.

vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, the keys should be a vendor-specific domain name followed by a /-separated path. For example, the Example IDE 1.0 could use example.com/ExampleIDE/1.0. The value of each field can be anything desired by the vendor, though will typically be a map.

configurePresets object[]

An optional array of configure preset objects. Available in version 1 and higher.

buildPresets object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 2 and higher.

testPresets object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 2 and higher.

3. object object
version const: 3

A required integer representing the version of the JSON schema.

Constant: 3
cmakeMinimumRequired object

An optional object representing the minimum version of CMake needed to build this project. Available in version 1 and higher.

vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, the keys should be a vendor-specific domain name followed by a /-separated path. For example, the Example IDE 1.0 could use example.com/ExampleIDE/1.0. The value of each field can be anything desired by the vendor, though will typically be a map.

configurePresets object[]

An optional array of configure preset objects. Available in version 3 and higher.

buildPresets object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 3 and higher.

testPresets object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 3 and higher.

4. object object
version const: 4

A required integer representing the version of the JSON schema.

Constant: 4
cmakeMinimumRequired object

An optional object representing the minimum version of CMake needed to build this project. Available in version 1 and higher.

vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, the keys should be a vendor-specific domain name followed by a /-separated path. For example, the Example IDE 1.0 could use example.com/ExampleIDE/1.0. The value of each field can be anything desired by the vendor, though will typically be a map.

configurePresets object[]

An optional array of configure preset objects. Available in version 3 and higher.

buildPresets object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 4 and higher.

testPresets object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 3 and higher.

include string[]

An optional array of strings representing files to include. If the filenames are not absolute, they are considered relative to the current file.

5. object object
version const: 5

A required integer representing the version of the JSON schema.

Constant: 5
cmakeMinimumRequired object

An optional object representing the minimum version of CMake needed to build this project. Available in version 1 and higher.

vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, the keys should be a vendor-specific domain name followed by a /-separated path. For example, the Example IDE 1.0 could use example.com/ExampleIDE/1.0. The value of each field can be anything desired by the vendor, though will typically be a map.

configurePresets object[]

An optional array of configure preset objects. Available in version 3 and higher.

buildPresets object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 4 and higher.

testPresets object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 5 and higher.

include string[]

An optional array of strings representing files to include. If the filenames are not absolute, they are considered relative to the current file.

6. object object
version const: 6

A required integer representing the version of the JSON schema.

Constant: 6
cmakeMinimumRequired object

An optional object representing the minimum version of CMake needed to build this project. Available in version 1 and higher.

vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, the keys should be a vendor-specific domain name followed by a /-separated path. For example, the Example IDE 1.0 could use example.com/ExampleIDE/1.0. The value of each field can be anything desired by the vendor, though will typically be a map.

configurePresets object[]

An optional array of configure preset objects. Available in version 3 and higher.

buildPresets object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 4 and higher.

testPresets object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 6 and higher.

packagePresets object[]

An optional array of package preset objects. Used to specify arguments to cpack. Available in version 6 and higher.

workflowPresets object[]

An optional array of workflow preset objects. Used to execute configure, build, test, and package presets in order. Available in version 6 and higher.

include string[]

An optional array of strings representing files to include. If the filenames are not absolute, they are considered relative to the current file.

7. object object
version const: 7

A required integer representing the version of the JSON schema.

Constant: 7
cmakeMinimumRequired object

An optional object representing the minimum version of CMake needed to build this project. Available in version 1 and higher.

vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, the keys should be a vendor-specific domain name followed by a /-separated path. For example, the Example IDE 1.0 could use example.com/ExampleIDE/1.0. The value of each field can be anything desired by the vendor, though will typically be a map.

configurePresets object[]

An optional array of configure preset objects. Available in version 7 and higher.

buildPresets object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 4 and higher.

testPresets object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 6 and higher.

packagePresets object[]

An optional array of package preset objects. Used to specify arguments to cpack. Available in version 6 and higher.

workflowPresets object[]

An optional array of workflow preset objects. Used to execute configure, build, test, and package presets in order. Available in version 6 and higher.

include string[]

An optional array of strings representing files to include. If the filenames are not absolute, they are considered relative to the current file.

8. object object
$schema string

The schema against which to verify this document.

format=uri-reference
version const: 8

A required integer representing the version of the JSON schema.

Constant: 8
cmakeMinimumRequired object

An optional object representing the minimum version of CMake needed to build this project. Available in version 1 and higher.

vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, the keys should be a vendor-specific domain name followed by a /-separated path. For example, the Example IDE 1.0 could use example.com/ExampleIDE/1.0. The value of each field can be anything desired by the vendor, though will typically be a map.

configurePresets object[]

An optional array of configure preset objects. Available in version 7 and higher.

buildPresets object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 4 and higher.

testPresets object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 6 and higher.

packagePresets object[]

An optional array of package preset objects. Used to specify arguments to cpack. Available in version 6 and higher.

workflowPresets object[]

An optional array of workflow preset objects. Used to execute configure, build, test, and package presets in order. Available in version 6 and higher.

include string[]

An optional array of strings representing files to include. If the filenames are not absolute, they are considered relative to the current file.

9. object object
$schema string

The schema against which to verify this document.

format=uri-reference
version const: 9

A required integer representing the version of the JSON schema.

Constant: 9
cmakeMinimumRequired object

An optional object representing the minimum version of CMake needed to build this project. Available in version 1 and higher.

vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, the keys should be a vendor-specific domain name followed by a /-separated path. For example, the Example IDE 1.0 could use example.com/ExampleIDE/1.0. The value of each field can be anything desired by the vendor, though will typically be a map.

configurePresets object[]

An optional array of configure preset objects. Available in version 7 and higher.

buildPresets object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 4 and higher.

testPresets object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 6 and higher.

packagePresets object[]

An optional array of package preset objects. Used to specify arguments to cpack. Available in version 6 and higher.

workflowPresets object[]

An optional array of workflow preset objects. Used to execute configure, build, test, and package presets in order. Available in version 6 and higher.

include string[]

An optional array of strings representing files to include. If the filenames are not absolute, they are considered relative to the current file.

10. object object
$schema string

The schema against which to verify this document.

format=uri-reference
$comment string | string[]
version const: 10

A required integer representing the version of the JSON schema.

Constant: 10
cmakeMinimumRequired object

An optional object representing the minimum version of CMake needed to build this project. Available in version 10 and higher.

vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, the keys should be a vendor-specific domain name followed by a /-separated path. For example, the Example IDE 1.0 could use example.com/ExampleIDE/1.0. The value of each field can be anything desired by the vendor, though will typically be a map.

configurePresets object[]

An optional array of configure preset objects. Available in version 10 and higher.

buildPresets object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 10 and higher.

testPresets object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 10 and higher.

packagePresets object[]

An optional array of package preset objects. Used to specify arguments to cpack. Available in version 10 and higher.

workflowPresets object[]

An optional array of workflow preset objects. Used to execute configure, build, test, and package presets in order. Available in version 10 and higher.

include string[]

An optional array of strings representing files to include. If the filenames are not absolute, they are considered relative to the current file.

11. object object
$schema string

The schema against which to verify this document.

format=uri-reference
$comment string | string[]
version const: 11

A required integer representing the version of the JSON schema.

Constant: 11
cmakeMinimumRequired object

An optional object representing the minimum version of CMake needed to build this project. Available in version 10 and higher.

vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, the keys should be a vendor-specific domain name followed by a /-separated path. For example, the Example IDE 1.0 could use example.com/ExampleIDE/1.0. The value of each field can be anything desired by the vendor, though will typically be a map.

configurePresets object[]

An optional array of configure preset objects. Available in version 10 and higher.

buildPresets object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 10 and higher.

testPresets object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 11 and higher.

packagePresets object[]

An optional array of package preset objects. Used to specify arguments to cpack. Available in version 10 and higher.

workflowPresets object[]

An optional array of workflow preset objects. Used to execute configure, build, test, and package presets in order. Available in version 10 and higher.

include string[]

An optional array of strings representing files to include. If the filenames are not absolute, they are considered relative to the current file.

12. object object
$schema string

The schema against which to verify this document.

format=uri-reference
$comment string | string[]
version const: 12

A required integer representing the version of the JSON schema.

Constant: 12
cmakeMinimumRequired object

An optional object representing the minimum version of CMake needed to build this project. Available in version 10 and higher.

vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, the keys should be a vendor-specific domain name followed by a /-separated path. For example, the Example IDE 1.0 could use example.com/ExampleIDE/1.0. The value of each field can be anything desired by the vendor, though will typically be a map.

configurePresets object[]

An optional array of configure preset objects. Available in version 10 and higher.

buildPresets buildPresetsV11
testPresets object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 12 and higher.

packagePresets object[]

An optional array of package preset objects. Used to specify arguments to cpack. Available in version 10 and higher.

workflowPresets object[]

An optional array of workflow preset objects. Used to execute configure, build, test, and package presets in order. Available in version 10 and higher.

include string[]

An optional array of strings representing files to include. If the filenames are not absolute, they are considered relative to the current file.

Definitions

$schema string

The schema against which to verify this document.

$comment string | string[]
commonPropertiesAll
name string

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, test, package, or workflow) in the union of CMakePresets.json and CMakeUserPresets.json in the same directory with the same name.

minLength=1
vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, it should follow the same conventions as the root-level vendor field.

displayName string

An optional string with a human-friendly name of the preset.

description string

An optional string with a human-friendly description of the preset.

configureBuildTestPackagePresetsEnvironmentProperty
environment Record<string, null | string>

An optional map of environment variables. The key is the variable name (which must not be an empty string). Each variable is set regardless of whether or not a value was given to it by the process's environment. This field supports macro expansion, and environment variables in this map may reference each other, and may be listed in any order, as long as such references do not cause a cycle (for example,if ENV_1 is $env{ENV_2}, ENV_2 may not be $env{ENV_1}.) Environment variables are inherited through the inherits field, and the preset's environment will be the union of its own environment and the environment from all its parents. If multiple presets in this union define the same variable, the standard rules of inherits are applied. Setting a variable to null causes it to not be set, even if a value was inherited from another preset.

commentAsProperty
$comment string | string[]
cmakeMinimumRequiredObject
major integer

An optional integer representing the major version.

minor integer

An optional integer representing the minor version.

patch integer

An optional integer representing the patch version.

cmakeMinimumRequiredV10 object

An optional object representing the minimum version of CMake needed to build this project. Available in version 10 and higher.

cmakeMinimumRequiredV1 object

An optional object representing the minimum version of CMake needed to build this project. Available in version 1 and higher.

vendor object

An optional map containing vendor-specific information. CMake does not interpret the contents of this field except to verify that it is a map if it does exist. However, the keys should be a vendor-specific domain name followed by a /-separated path. For example, the Example IDE 1.0 could use example.com/ExampleIDE/1.0. The value of each field can be anything desired by the vendor, though will typically be a map.

configurePresetsArchitectureAsStringV1 string

An optional string representing the platform for generators that support it.

configurePresetsArchitectureAsObjectV1
value string

An optional string representing the value.

strategy string

An optional string telling CMake how to handle the field. Valid values are: "set" Set the respective value. This will result in an error for generators that do not support the respective field. "external" Do not set the value, even if the generator supports it. This is useful if, for example, a preset uses the Ninja generator, and an IDE knows how to set up the Visual C++ environment from the architecture and toolset fields. In that case, CMake will ignore the field, but the IDE can use them to set up the environment before invoking CMake.

Values: "set" "external"
configurePresetsArchitectureV10 configurePresetsArchitectureAsStringV1 | object
configurePresetsArchitectureV1 configurePresetsArchitectureAsStringV1 | object
configurePresetsToolsetAsStringV1 string

An optional string representing the toolset for generators that support it.

configurePresetsToolsetAsObjectV1
value string

An optional string representing the value.

strategy string

An optional string telling CMake how to handle the field. Valid values are: "set" Set the respective value. This will result in an error for generators that do not support the respective field. "external" Do not set the value, even if the generator supports it. This is useful if, for example, a preset uses the Ninja generator, and an IDE knows how to set up the Visual C++ environment from the architecture and toolset fields. In that case, CMake will ignore the field, but the IDE can use them to set up the environment before invoking CMake.

Values: "set" "external"
configurePresetsToolsetV10 configurePresetsToolsetAsStringV1 | object
configurePresetsToolsetV1 configurePresetsToolsetAsStringV1 | object
configurePresetsCacheVariablesAdditionalPropertiesAsNull null

Setting a variable to null causes it to not be set, even if a value was inherited from another preset.

configurePresetsCacheVariablesAdditionalPropertiesAsBoolean boolean

A boolean representing the value of the variable. Equivalent to "TRUE" or "FALSE".

configurePresetsCacheVariablesAdditionalPropertiesAsString string

A string representing the value of the variable (which supports macro expansion).

configurePresetsCacheVariablesAdditionalPropertiesAsObject
type string

An optional string representing the type of the variable. It should be BOOL, FILEPATH, PATH, STRING, or INTERNAL.

Values: "BOOL" "FILEPATH" "PATH" "STRING" "INTERNAL"
configurePresetsCacheVariablesAdditionalPropertiesV10 configurePresetsCacheVariablesAdditionalPropertiesAsNull | configurePresetsCacheVariablesAdditionalPropertiesAsBoolean | configurePresetsCacheVariablesAdditionalPropertiesAsString | object
configurePresetsCacheVariablesAdditionalPropertiesV1 configurePresetsCacheVariablesAdditionalPropertiesAsNull | configurePresetsCacheVariablesAdditionalPropertiesAsBoolean | configurePresetsCacheVariablesAdditionalPropertiesAsString | object
configurePresetsTraceV10 object

An optional object specifying trace options.

configurePresetsTraceV7 object

An optional object specifying trace options.

configurePresetsTraceObject
mode string

An optional string that specifies the trace mode.

Values: "on" "off" "expand"
format string

An optional string that specifies the trace output format.

Values: "human" "json-v1"
source string | string[]
redirect string

An optional string specifying a path to a trace output file.

configurePresetsDebugV10 object

An optional object specifying debug options.

configurePresetsDebugV1 object

An optional object specifying debug options.

configurePresetsErrorsV10 object

An optional object specifying errors.

configurePresetsErrorsV1 object

An optional object specifying errors.

configurePresetsWarningsV10 object

An optional object specifying warnings.

configurePresetsWarningsV1 object

An optional object specifying warnings.

configurePresetsDebugObject
output boolean

An optional boolean. Setting this to true is equivalent to passing --debug-output on the command line.

tryCompile boolean

An optional boolean. Setting this to true is equivalent to passing --debug-trycompile on the command line.

find boolean

An optional boolean. Setting this to true is equivalent to passing --debug-find on the command line.

configurePresetsErrorsObject
dev boolean

An optional boolean. Equivalent to passing -Werror=dev or -Wno-error=dev on the command line. This may not be set to true if warnings.dev is set to false.

deprecated boolean

An optional boolean. Equivalent to passing -Werror=deprecated or -Wno-error=deprecated on the command line. This may not be set to true if warnings.deprecated is set to false.

configurePresetsWarningsObject
dev boolean

An optional boolean. Equivalent to passing -Wdev or -Wno-dev on the command line. This may not be set to false if errors.dev is set to true.

deprecated boolean

An optional boolean. Equivalent to passing -Wdeprecated or -Wno-deprecated on the command line. This may not be set to false if errors.deprecated is set to true.

uninitialized boolean

An optional boolean. Setting this to true is equivalent to passing --warn-uninitialized on the command line.

unusedCli boolean

An optional boolean. Setting this to false is equivalent to passing --no-warn-unused-cli on the command line.

systemVars boolean

An optional boolean. Setting this to true is equivalent to passing --check-system-vars on the command line.

configurePresetsItemsV10
graphviz string

An optional string specifying the path to graphviz dot file. Available in version 10 and higher.

configurePresetsItemsV3
toolchainFile string

An optional string representing the path to the toolchain file. This field supports macro expansion. If a relative path is specified, it is calculated relative to the build directory, and if not found, relative to the source directory.

installDir string

An optional string representing the path to the installation directory, which will be used as the CMAKE_INSTALL_PREFIX variable. This field supports macro expansion. If a relative path is specified, it is calculated relative to the source directory.

configurePresetsItemsV1
configurePresetsAdditionalPropertiesV10

An optional map of cache variables. The key is the variable name (which must not be an empty string). Cache variables are inherited through the inherits field, and the preset's variables will be the union of its own cacheVariables and the cacheVariables from all its parents. If multiple presets in this union define the same variable, the standard rules of inherits are applied.

binaryDir string

An optional string representing the path to the output binary directory. This field supports macro expansion. If a relative path is specified, it is calculated relative to the source directory. If binaryDir is not specified, the path is calculated using regular methods.

generator string

An optional string representing the generator to use for the preset. If generator is not specified, the normal generator discovery procedure is used. Note that for Visual Studio generators, unlike in the command line -G argument, you cannot include the platform name in the generator name. Use the architecture field instead.

warnings object

An optional object specifying warnings.

errors object

An optional object specifying errors.

debug object

An optional object specifying debug options.

trace object

An optional object specifying trace options.

configurePresetsAdditionalPropertiesV7
configurePresetsAdditionalPropertiesV3
configurePresetsAdditionalPropertiesV1

An optional map of cache variables. The key is the variable name (which must not be an empty string). Cache variables are inherited through the inherits field, and the preset's variables will be the union of its own cacheVariables and the cacheVariables from all its parents. If multiple presets in this union define the same variable, the standard rules of inherits are applied.

binaryDir string

An optional string representing the path to the output binary directory. This field supports macro expansion. If a relative path is specified, it is calculated relative to the source directory. If binaryDir is not specified, it must be inherited from the inherits preset (unless this preset is hidden).

generator string

An optional string representing the generator to use for the preset. If generator is not specified, it must be inherited from the inherits preset (unless this preset is hidden). Note that for Visual Studio generators, unlike in the command line -G argument, you cannot include the platform name in the generator name. Use the architecture field instead.

warnings object

An optional object specifying warnings.

errors object

An optional object specifying errors.

debug object

An optional object specifying debug options.

configurePresetsV10 object[]

An optional array of configure preset objects. Available in version 10 and higher.

configurePresetsV7 object[]

An optional array of configure preset objects. Available in version 7 and higher.

configurePresetsV3 object[]

An optional array of configure preset objects. Available in version 3 and higher.

configurePresetsV1 object[]

An optional array of configure preset objects. Available in version 1 and higher.

buildPresetsItemsV4
resolvePackageReferences string

An optional string specifying the package resolve behavior. Valid values are "on" (packages are resolved prior to the build), "off" (packages are not resolved prior to the build), and "only" (packages are resolved, but no build will be performed).

Values: "on" "off" "only"
buildPresetsItemsV2
buildPresetsAdditionalPropertiesV10
buildPresetsAdditionalPropertiesV3
buildPresetsV10 object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 10 and higher.

buildPresetsV4 object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 4 and higher.

buildPresetsV3 object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 3 and higher.

buildPresetsV2 object[]

An optional array of build preset objects. Used to specify arguments to cmake --build. Available in version 2 and higher.

testPresetsExecutionJobsV11 integer | string
testPresetsExecutionJobsV2 integer

An optional non-negative integer. Equivalent to passing --parallel or -j on the command line.

testPresetsExecutionRepeatV10 object

An optional object specifying how to repeat tests. Equivalent to passing --repeat on the command line.

testPresetsExecutionRepeatV2 object

An optional object specifying how to repeat tests. Equivalent to passing --repeat on the command line.

testPresetsExecutionRepeatObject
mode string required

A required string. Must be one of the following values: "until-fail", "until-pass", or "after-timeout".

Values: "until-fail" "until-pass" "after-timeout"
count integer required

A required integer.

testPresetsFilterIncludeIndexAsStringV2 string

An optional string specifying a file with the command line syntax for --tests-information. Available in version 2 and higher.

testPresetsFilterIncludeIndexAsObjectV10 object

An optional object specifying tests to include by test index. Available in version 10 and higher.

$comment string | string[]
testPresetsFilterIncludeIndexAsObjectV2 object

An optional object specifying tests to include by test index. Available in version 2 and higher.

start integer

An optional integer specifying a test index to start testing at.

end integer

An optional integer specifying a test index to stop testing at.

stride integer

An optional integer specifying the increment.

specificTests integer[]

An optional array of integers specifying specific test indices to run.

testPresetsFilterIncludeIndexV10 testPresetsFilterIncludeIndexAsStringV2 | object
testPresetsFilterIncludeIndexV2 testPresetsFilterIncludeIndexAsStringV2 | object
testPresetsFilterIncludeV10 object

An optional object specifying which tests to include.

testPresetsFilterIncludeV2 object

An optional object specifying which tests to include.

testPresetsFilterIncludeObject
name string

An optional string specifying a regex for test names. Equivalent to passing --tests-regex on the command line.

label string

An optional string specifying a regex for test labels. Equivalent to passing --label-regex on the command line.

useUnion boolean

An optional boolean. Equivalent to passing --union on the command line.

testPresetsFilterExcludeV10 object

An optional object specifying which tests to exclude.

testPresetsFilterExcludeV2 object

An optional object specifying which tests to exclude.

testPresetsFilterExcludeFixturesV2 object

An optional object specifying which fixtures to exclude from adding tests.

any string

An optional string specifying a regex for text fixtures to exclude from adding any tests. Equivalent to --fixture-exclude-any on the command line.

setup string

An optional string specifying a regex for text fixtures to exclude from adding setup tests. Equivalent to --fixture-exclude-setup on the command line.

cleanup string

An optional string specifying a regex for text fixtures to exclude from adding cleanup tests. Equivalent to --fixture-exclude-cleanup on the command line.

testPresetsFilterExcludeObject
name string

An optional string specifying a regex for test names. Equivalent to passing --exclude-regex on the command line.

label string

An optional string specifying a regex for test labels. Equivalent to passing --label-exclude on the command line.

testPresetsExecutionV12 object

An optional object specifying options for test execution.

testPresetsExecutionV11 object

An optional object specifying options for test execution.

testPresetsExecutionV10 object

An optional object specifying options for test execution.

testPresetsExecutionV2 object

An optional object specifying options for test execution.

testPresetsExecutionObject
stopOnFailure boolean

An optional boolean. If true, equivalent to passing --stop-on-failure on the command line.

enableFailover boolean

An optional boolean. If true, equivalent to passing -F on the command line.

resourceSpecFile string

An optional string. Equivalent to passing --resource-spec-file on the command line.

testLoad integer

An optional integer. Equivalent to passing --test-load on the command line.

showOnly string

An optional string. Equivalent to passing --show-only on the command line. Value must be "human" or "json-v1".

Values: "human" "json-v1"
interactiveDebugging boolean

An optional boolean. If true, equivalent to passing --interactive-debug-mode 1 on the command line. If false, equivalent to passing --interactive-debug-mode 0 on the command line.

scheduleRandom boolean

An optional boolean. If true, equivalent to passing --schedule-random on the command line.

timeout integer

An optional integer. Equivalent to passing --timeout on the command line.

noTestsAction string

An optional string specifying the behavior if no tests are found. Must be one of the following values: "default" (equivalent to not passing any value on the command line), "error" (equivalent to passing --no-tests=error on the command line), or "ignore" (equivalent to passing --no-tests-ignore on the command line).

Values: "default" "error" "ignore"
testPresetsOutputJUnitFile string

An optional string specifying a path to a JUnit file. Equivalent to passing --output-junit on the command line.

testPresetsTestOutputTruncation string

An optional string specifying the test output truncation mode. Equivalent to passing --test-output-truncation on the command line. Must be one of the following values: "tail", "middle", or "head".

testPresetsOutputV10 object

An optional object specifying output options.

testPresetsOutputV6 object

An optional object specifying output options.

testPresetsOutputV5 object

An optional object specifying output options.

testPresetsOutputV2 object

An optional object specifying output options.

testPresetsOutputObject
shortProgress boolean

An optional boolean. If true, equivalent to passing --progress on the command line.

verbosity string

An optional string specifying verbosity level. Valid values are "default" (equivalent to passing no verbosity flags on the command line), "verbose" (equivalent to passing --verbose on the command line), and "extra" (equivalent to passing --extra-verbose on the command line).

Values: "default" "verbose" "extra"
debug boolean

An optional boolean. If true, equivalent to passing --debug on the command line.

outputOnFailure boolean

An optional boolean. If true, equivalent to passing --output-on-failure on the command line.

quiet boolean

An optional boolean. If true, equivalent to passing --quiet on the command line.

outputLogFile string

An optional string specifying a path to a log file. Equivalent to passing --output-log on the command line.

labelSummary boolean

An optional boolean. If false, equivalent to passing --no-label-summary on the command line.

subprojectSummary boolean

An optional boolean. If false, equivalent to passing --no-subproject-summary on the command line.

maxPassedTestOutputSize integer

An optional integer specifying the maximum output for passed tests in bytes. Equivalent to passing --test-output-size-passed on the command line.

maxFailedTestOutputSize integer

An optional integer specifying the maximum output for failed tests in bytes. Equivalent to passing --test-output-size-failed on the command line.

maxTestNameWidth integer

An optional integer specifying the maximum width of a test name to output. Equivalent to passing --max-width on the command line.

testPresetsAdditionalPropertiesV12
execution object

An optional object specifying options for test execution.

filter object

An optional object specifying how to filter the tests to run.

3 nested properties
include object

An optional object specifying which tests to include.

exclude object

An optional object specifying which tests to exclude.

$comment string | string[]
output object

An optional object specifying output options.

All of: testPresetsOutputObject, variant
testPresetsAdditionalPropertiesV11
execution object

An optional object specifying options for test execution.

filter object

An optional object specifying how to filter the tests to run.

3 nested properties
include object

An optional object specifying which tests to include.

exclude object

An optional object specifying which tests to exclude.

$comment string | string[]
output object

An optional object specifying output options.

All of: testPresetsOutputObject, variant
testPresetsAdditionalPropertiesV10
execution object

An optional object specifying options for test execution.

filter object

An optional object specifying how to filter the tests to run.

3 nested properties
include object

An optional object specifying which tests to include.

exclude object

An optional object specifying which tests to exclude.

$comment string | string[]
output object

An optional object specifying output options.

All of: testPresetsOutputObject, variant
testPresetsAdditionalPropertiesV6
execution object

An optional object specifying options for test execution.

All of: testPresetsExecutionObject, variant
filter object

An optional object specifying how to filter the tests to run.

2 nested properties
include object

An optional object specifying which tests to include.

exclude object

An optional object specifying which tests to exclude.

output object

An optional object specifying output options.

All of: testPresetsOutputObject, variant
testPresetsAdditionalPropertiesV5
execution object

An optional object specifying options for test execution.

All of: testPresetsExecutionObject, variant
filter object

An optional object specifying how to filter the tests to run.

2 nested properties
include object

An optional object specifying which tests to include.

exclude object

An optional object specifying which tests to exclude.

output object

An optional object specifying output options.

All of: testPresetsOutputObject, variant
testPresetsAdditionalPropertiesV3
testPresetsAdditionalPropertiesV2
execution object

An optional object specifying options for test execution.

All of: testPresetsExecutionObject, variant
filter object

An optional object specifying how to filter the tests to run.

2 nested properties
include object

An optional object specifying which tests to include.

exclude object

An optional object specifying which tests to exclude.

output object

An optional object specifying output options.

testPresetsItemsV2
testPresetsV12 object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 12 and higher.

testPresetsV11 object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 11 and higher.

testPresetsV10 object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 10 and higher.

testPresetsV6 object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 6 and higher.

testPresetsV5 object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 5 and higher.

testPresetsV3 object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 3 and higher.

testPresetsV2 object[]

An optional array of test preset objects. Used to specify arguments to ctest. Available in version 2 and higher.

packagePresetsOutputV10 object

An optional object specifying output options.

packagePresetsOutputV6 object

An optional object specifying output options.

packagePresetsOutputObject
debug boolean

An optional boolean specifying whether or not to print debug information. A value of true is equivalent to passing --debug on the command line.

verbose boolean

An optional boolean specifying whether or not to print verbosely. A value of true is equivalent to passing --verbose on the command line.

packagePresetsAdditionalPropertiesV10
output object

An optional object specifying output options.

$comment string | string[]
packagePresetsAdditionalPropertiesV6
output object

An optional object specifying output options.

packagePresetsItemsV6
packagePresetsV10 object[]

An optional array of package preset objects. Used to specify arguments to cpack. Available in version 10 and higher.

packagePresetsV6 object[]

An optional array of package preset objects. Used to specify arguments to cpack. Available in version 6 and higher.

workflowPresetsStepsV10 object[]

A required array of objects describing the steps of the workflow. The first step must be a configure preset, and all subsequent steps must be non-configure presets whose configurePreset field matches the starting configure preset.

workflowPresetsStepsV6 object[]

A required array of objects describing the steps of the workflow. The first step must be a configure preset, and all subsequent steps must be non-configure presets whose configurePreset field matches the starting configure preset.

workflowPresetsStepsObject
type string required

A required string. The first step must be configure. Subsequent steps must be either build, test, or package.

Values: "configure" "build" "test" "package"
name string required

A required string representing the name of the configure, build, test, or package preset to run as this workflow step.

minLength=1
workflowPresetsAdditionalPropertiesV10
steps object[]

A required array of objects describing the steps of the workflow. The first step must be a configure preset, and all subsequent steps must be non-configure presets whose configurePreset field matches the starting configure preset.

$comment string | string[]
workflowPresetsAdditionalPropertiesV6
steps object[]

A required array of objects describing the steps of the workflow. The first step must be a configure preset, and all subsequent steps must be non-configure presets whose configurePreset field matches the starting configure preset.

workflowPresetsV10 object[]

An optional array of workflow preset objects. Used to execute configure, build, test, and package presets in order. Available in version 10 and higher.

workflowPresetsV6 object[]

An optional array of workflow preset objects. Used to execute configure, build, test, and package presets in order. Available in version 6 and higher.

conditionAsBooleanV3 boolean

A boolean which provides a constant value for the condition's evaluation.

conditionAsObjectConstV3 object
type string required

A required string specifying the type of the condition.

Constant: "const"
value boolean required

A required boolean which provides a constant value for the condition's evaluation.

conditionAsObjectEqualsV3 object
type string required

A required string specifying the type of the condition.

Values: "equals" "notEquals"
lhs string required

First string to compare. This field supports macro expansion.

rhs string required

Second string to compare. This field supports macro expansion.

conditionAsObjectInListV3 object
type string required

A required string specifying the type of the condition.

Values: "inList" "notInList"
string string required

A required string to search for. This field supports macro expansion.

list string[] required

A required list of strings to search. This field supports macro expansion, and uses short-circuit evaluation.

conditionAsObjectMatchesV3 object
type string required

A required string specifying the type of the condition.

Values: "matches" "notMatches"
string string required

A required string to search. This field supports macro expansion.

regex string required

A required regular expression to search for. This field supports macro expansion.

conditionAsObjectAggregationV3 object
type string required

A required string specifying the type of the condition.

Values: "anyOf" "allOf"
conditions array required

A required array of condition objects. These conditions use short-circuit evaluation.

conditionAsObjectNotV3 object
type string required

A required string specifying the type of the condition.

Constant: "not"
condition conditionAsBooleanV3 | object | object | object | object | object | object required
conditionV10 conditionAsBooleanV3 | object | object | object | object | object | object
conditionV3 conditionAsBooleanV3 | object | object | object | object | object | object
topConditionAsNullV3 null

Null indicates that the condition always evaluates to true and is not inherited.

topConditionV10 conditionV10 | topConditionAsNullV3
topConditionV3 conditionV3 | topConditionAsNullV3
include string[]

An optional array of strings representing files to include. If the filenames are not absolute, they are considered relative to the current file.