Ability to set global properties in configure presets?

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

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.

1 Like

For anyone interested, this 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)