Feature Request: Implicit Presets: Allow building and testing existing configure presets without explicit build or test presets
I think there needs to be a way to build and test defined configure presets in the most straight-forward fashion without having to write/copy-paste boilerplate-like build/test presets for every single configure preset. It is error prone and cumbersome, and using tooling to sync the configure presets with these default build and test presets practically negates using presets in the first place.
I wrote a blog post about this here. The feature requests is as pointed out here
After some deliberation I consider the best approach for this to be:
Add CLI argument --configure-preset=<configure-preset-name>
to:
cmake --build
ctest
cpack
Using this argument would be equivalent to creating a build preset, test preset, and a package preset of the form:
{
"name": "implicit-preset-based-on-<configure-preset-name>",
"configurePreset": "<configure-preset-name>"
}
...and running the tools with --preset="implicit-preset-based-on-<configure-preset-name>"
instead.
Alternatives which accomplish the same goal are welcome