cmake-presets
supports inheritance. That is nice, providing that the parent preset is visible, but not work otherwise. Taking for example with preset1.json
:
{
"version": 5,
"configurePresets": [
{
"name": "base_preset"
}
}
preset2.json
:
{
"version": 5,
"configurePresets": [
{
"name": "child_preset",
"inherits": [
"base_preset"
]
}
}
and CMakePresets.json
:
{
"version": 5,
"include": [
"preset1.json",
"preset2.json"
]
}
The inherited preset does not work because base_preset
is unreachable. Is it a bug or intended behavior?