# buildPresets - configurePresets one to one mapping?

**URL:** https://discourse.cmake.org/t/buildpresets-configurepresets-one-to-one-mapping/3549
**Category:** Usage
**Created:** [June 10, 2021, 1:35pm UTC](https://discourse.cmake.org/t/buildpresets-configurepresets-one-to-one-mapping/3549 "2021-06-10T13:35:38Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DavidA](https://discourse.cmake.org/user_avatar/discourse.cmake.org/davida/32/128_2.png) [@DavidA](https://discourse.cmake.org/u/DavidA)
#### Post date: [June 10, 2021, 1:35pm UTC](https://discourse.cmake.org/t/buildpresets-configurepresets-one-to-one-mapping/3549/1 "2021-06-10T13:35:38Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![DavidA](https://discourse.cmake.org/user_avatar/discourse.cmake.org/davida/32/128_2.png) [@DavidA](https://discourse.cmake.org/u/DavidA)
#### Post date: [June 10, 2021, 4:01pm UTC](https://discourse.cmake.org/t/buildpresets-configurepresets-one-to-one-mapping/3549/2 "2021-06-10T16:01:01Z")

</div>

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](https://discourse.cmake.org/t/help-converting-most-of-a-ci-matrix-to-presets/3391)
