buildPresets - configurePresets one to one mapping?

I am using a build preset to specify whether or not to run ninja in verbose mode:

{
  "version": 2,
  "configurePresets": [
 {
  "name": "linux-A",
  "displayName": "Linux A",
  "inherits": "linux-remote-base",
  "cacheVariables": {
    "CMAKE_BUILD_TYPE": "Release"
  },
  "vendor": {
    "microsoft.com/VisualStudioRemoteSettings/CMake/1.0": {
        <snip>          }
    }
  }
}
  ],
  "buildPresets": [
{
  "name": "ninja quiet",
  "configurePreset": "linux-A"
},
{
  "name": "ninja verbose",
  "configurePreset": "linux-A",
  "nativeToolOptions": [ "-v" ]
}
  ]
}

From the documentation it seems that the build preset may specify only one configure preset, but I will have numerous Configure Presets, all using Ninja. It would be nice to have a common build preset for all Configure Presets, otherwise, in a GUI (I’m using Visual Studio 2019) the developer will be offered many Build Presets to enable Ninja verbose mode.

Is there a tidy way to organise this?

1 Like

I think it’s clear that there is a one-to-one mapping for build presets and configure presets, so my question is redundant. But I note that the issue is discussed fully here: Help converting most of a CI matrix to presets? - Usage - CMake Discourse