Starting with CMake v3.30
this workaround exists.
I have this preset files:
CMakeDarwinPresets.json
CMakeGenericPresets.json
CMakeLinuxPresets.json
CMakePresets.json
CMakeWindowsPresets.json
{
"version": 9,
"cmakeMinimumRequired": {
"major": 3,
"minor": 30,
"patch": 0
},
"include": [
"CMake${hostSystemName}Presets.json"
],
"configurePresets": [
{
"name": "dev",
"displayName": "developer Ninja build on unix with Coverage",
"description": "NOTE: coverage must be the first to overwrite Release build! CK",
"inherits": [
"ci-coverage",
"doxygen"
],
"generator": "Ninja"
}
],
"buildPresets": [
{
"name": "dev",
"configurePreset": "dev",
"configuration": "Coverage",
"targets": [
"all"
]
}
],
"testPresets": [
{
"name": "dev",
"configurePreset": "dev",
"configuration": "Coverage",
"output": {
"outputOnFailure": true
}
}
],
"workflowPresets": [
{
"name": "dev",
"steps": [
{
"type": "configure",
"name": "dev"
},
{
"type": "build",
"name": "dev"
},
{
"type": "test",
"name": "dev"
}
]
}
]
}