mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Add inheritance support for configure preset fields that were missing from ConfigurePreset::VisitPresetInherit: debugOutput, debugTryCompile, debugFind, trace mode, trace format, trace source, and trace redirect. Add tests verifying that these fields propagate correctly from parent to child presets, including override cases. Fixes: #27766
33 lines
579 B
Plaintext
33 lines
579 B
Plaintext
{
|
|
"version": 1,
|
|
"configurePresets": [
|
|
{
|
|
"name": "NoDebug",
|
|
"generator": "@RunCMake_GENERATOR@",
|
|
"binaryDir": "${sourceDir}/build"
|
|
},
|
|
{
|
|
"name": "Debug",
|
|
"inherits": "NoDebug",
|
|
"debug": {
|
|
"output": true,
|
|
"find": true,
|
|
"tryCompile": true
|
|
}
|
|
},
|
|
{
|
|
"name": "DebugInherit",
|
|
"inherits": "Debug"
|
|
},
|
|
{
|
|
"name": "DebugInheritOverride",
|
|
"inherits": "Debug",
|
|
"debug": {
|
|
"output": false,
|
|
"find": false,
|
|
"tryCompile": false
|
|
}
|
|
}
|
|
]
|
|
}
|