We are using CMakePresets.json extensively in our project and rely on the condition field to control which presets are visible depending on the host system.
However, it appears that the nRF Connect for VS Code extension does not respect the condition property. All presets are listed regardless of the condition defined.
Example:
{
"name": "windows-build",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Windows"
}
}
{
"name": "linux-build",
"condition": {
"type": "equals",
"lhs": "${hostSystemName}",
"rhs": "Linux"
}
}
Expected behavior:
-
On Windows → only
windows-buildpreset should be visible -
On Linux → only
linux-buildpreset should be visible
Actual behavior:
-
Both presets are listed regardless of host OS.