# Do CMake "interface"(?) presets exist?

**URL:** https://discourse.cmake.org/t/do-cmake-interface-presets-exist/5671
**Category:** Usage
**Created:** [May 16, 2022, 2:46pm UTC](https://discourse.cmake.org/t/do-cmake-interface-presets-exist/5671 "2022-05-16T14:46:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Cascades](https://discourse.cmake.org/user_avatar/discourse.cmake.org/cascades/32/1819_2.png) [@Cascades](https://discourse.cmake.org/u/Cascades)
#### Post date: [May 16, 2022, 2:46pm UTC](https://discourse.cmake.org/t/do-cmake-interface-presets-exist/5671/1 "2022-05-16T14:46:22Z")

</div>

Hi all, given a situation where a `CMakePresets.json` is distributed in a codebase, and users are _expected_ to modify certain values in their own `CMakeUserPresets.json`, is there any way to suggests to an IDE (or even `cmake --list-presets`) that some presets aren’t really meant to be run without being built upon further.

For example:

```auto
$ cmake --list-presets
Available configure presets:

  "user_debug"
  "user_release"
  "root_config" (Interface)
  "debug_base" (Interface)
  "release_base" (Interface)

```

Would indicate that really `"user_debug"` and `"user_release"` are the only presets with any expectation of actually configuring/building successfully. IDE’s could then also use this to hide interface ones, or perhaps just prevent them from being defaulted to or something.

Anyway, does anything like this exist? If not, does anyone have any ideas on whether this could/should be suggested as a feature?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [May 16, 2022, 3:48pm UTC](https://discourse.cmake.org/t/do-cmake-interface-presets-exist/5671/2 "2022-05-16T15:48:04Z")

</div>

@kyle.edwards

---

<div class="post-metadata">

### Author: ![craig.scott](https://discourse.cmake.org/user_avatar/discourse.cmake.org/craig.scott/32/20_2.png) [@craig.scott](https://discourse.cmake.org/u/craig.scott)
#### Post date: [May 17, 2022, 4:58am UTC](https://discourse.cmake.org/t/do-cmake-interface-presets-exist/5671/3 "2022-05-17T04:58:00Z")

</div>

Add `"hidden": true` to the preset to prevent it from showing in the presets listed by IDEs or the `cmake --list-presets` command.

---

<div class="post-metadata">

### Author: ![Cascades](https://discourse.cmake.org/user_avatar/discourse.cmake.org/cascades/32/1819_2.png) [@Cascades](https://discourse.cmake.org/u/Cascades)
#### Post date: [May 17, 2022, 8:55am UTC](https://discourse.cmake.org/t/do-cmake-interface-presets-exist/5671/4 "2022-05-17T08:55:09Z")

</div>

I cannot believe I missed this, it’s listed second on the docs! Thanks Craig!
