# Ability to set global properties in configure presets?

**URL:** https://discourse.cmake.org/t/ability-to-set-global-properties-in-configure-presets/13726
**Category:** Development
**Created:** [March 12, 2025, 12:00am UTC](https://discourse.cmake.org/t/ability-to-set-global-properties-in-configure-presets/13726 "2025-03-12T00:00:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![benthevining](https://discourse.cmake.org/user_avatar/discourse.cmake.org/benthevining/32/1924_2.png) [@benthevining](https://discourse.cmake.org/u/benthevining)
#### Post date: [March 12, 2025, 12:00am UTC](https://discourse.cmake.org/t/ability-to-set-global-properties-in-configure-presets/13726/1 "2025-03-12T00:00:36Z")

</div>

Has this ever been discussed before? Is there a reason it’s not supported?

The use case would be setting properties that don’t have a variable to initialize them, such as `USE_FOLDERS`

---

<div class="post-metadata">

### Author: ![brad.king](https://discourse.cmake.org/user_avatar/discourse.cmake.org/brad.king/32/11_2.png) [@brad.king](https://discourse.cmake.org/u/brad.king)
#### Post date: [March 12, 2025, 12:09pm UTC](https://discourse.cmake.org/t/ability-to-set-global-properties-in-configure-presets/13726/2 "2025-03-12T12:09:15Z")

</div>

Presets are meant to be a layer over what can be achieved by spelling out command-line options. In general we don’t have functionality that can only be achieved via presets.

In this case, one could add support for a `CMAKE_USE_FOLDERS` cache entry, which could then be enabled by presets.

---

<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: [July 20, 2025, 2:33am UTC](https://discourse.cmake.org/t/ability-to-set-global-properties-in-configure-presets/13726/3 "2025-07-20T02:33:10Z")

</div>

For anyone interested, [this](https://gitlab.kitware.com/cmake/cmake/-/blob/eb56394c9de102aeaba64cba062b2564d8d53bdb/Source/cmTarget.cxx#L304) is the table to update to add support for `CMAKE_USE_FOLDERS`. Note that the following would also need updated:

- docs
- test suite (there’s a dedicated test that has infra for easily testing that table)
