# Relax CMakePresets.json fixed location

**URL:** https://discourse.cmake.org/t/relax-cmakepresets-json-fixed-location/3199
**Category:** Development
**Created:** [April 22, 2021, 1:47pm UTC](https://discourse.cmake.org/t/relax-cmakepresets-json-fixed-location/3199 "2021-04-22T13:47:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mbee](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/m/50afbb/32.png) [@mbee](https://discourse.cmake.org/u/mbee)
#### Post date: [April 22, 2021, 1:47pm UTC](https://discourse.cmake.org/t/relax-cmakepresets-json-fixed-location/3199/1 "2021-04-22T13:47:11Z")

</div>

The relatively recent introduction of CMakePresets.json and CMakeUserPresets.json are very appreciated here, but will require in our opinion an additional level of flexibility:

We would like create the files on the fly. While this is not that problematic for our Jenkins builds (checked out repos are deleted anyway afterwards), for local builds there should be the possibility to choose a user-defined path for the files (effectively putting/creating them in the build directory or out-of-source in general).

We could of course skipping things completely by creating / reading some self-defined json file and utilizing cmakes native json string support, but would lose all the semantic meanings of the both files.

Michael

---

<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: [April 22, 2021, 3:46pm UTC](https://discourse.cmake.org/t/relax-cmakepresets-json-fixed-location/3199/2 "2021-04-22T15:46:17Z")

</div>

Cc: @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: [April 22, 2021, 10:24pm UTC](https://discourse.cmake.org/t/relax-cmakepresets-json-fixed-location/3199/3 "2021-04-22T22:24:10Z")

</div>

[Issue 21331](https://gitlab.kitware.com/cmake/cmake/-/issues/21331) contains discussions around this topic.
