I am generating a number of CMakePresets.json files.
It would be convenient to be able to generate a no-op build preset.
(Rather than discovering that it will not be needed and dealing with the fall-out).
note: In the following examples these are fragments included from a driver CMakePresets.json
The problem is that the obvious options:
{
"version": 6,
"buildPresets": [
{
"name": "cb-G-iface-algorithm",
"configurePreset": "cc-ninja",
"configuration": "Debug",
"inheritConfigureEnvironment": false,
"targets": [ ]
}
]
}
{
"version": 6,
"buildPresets": [
{
"name": "cb-G-iface-algorithm",
"configurePreset": "cc-ninja",
"configuration": "Debug",
"inheritConfigureEnvironment": false
}
]
}
Seem to build all targets.
I could make a do nothing target…
{
"version": 6,
"buildPresets": [
{
"name": "cb-G-iface-algorithm",
"configurePreset": "cc-ninja",
"configuration": "Debug",
"inheritConfigureEnvironment": false,
"targets": [ "NULL"
]
}
]
}
…or is there some canonical way?
I believe there is an ALL target? is there a NULL or NONE target?