presets: Allow linking to abstract configure presets
With the workflow presets, I think it makes sense to allow BuildPresets
, and TestPresets
to be linked to abstract ConfigurePresets
. These will be not allowed to be called manually, but can be used in WorkflowPresets
such that we can write:
{
"workflowPresets": [
{
"name": "setup-1",
"steps": [
{
"type": "configure",
"name": "setup-1"
},
{
"type": "build",
"name": "default"
}
]
},
{
"name": "setup-2",
"steps": [
{
"type": "configure",
"name": "setup-2"
},
{
"type": "build",
"name": "default"
}
]
}
]
}
Where setup-1
and setup-2
both include an abstract default
. Internally, simply change the default
BuildPreset to now point to either setup-1
or setup-2
based on if it is in an appropriate WorkflowPreset, otherwise display an ill-configured error when tried to run as cmake --build --preset default
(or maybe allow to call cmake --preset setup-1 --build --preset default
?)