Run Workflow Preset with just cmake --workflow=presetName?
As far as I can tell from the documentation of the new Workflow Preset feature in 3.25.0-rc1, it must be called at the command line with:
cmake --workflow --preset=presetName
I think it would be just as descriptive with less typing as:
cmake --workflow=presetName
...and cmake --list-workflows
could print the Workflow Preset names like cmake --list-presets
prints the Configure Present names.
Then the cmake
command plus one flag (well, two for build, unless you want to add a cbuild
command :P) can access every major CMake task:
- Configure:
cmake --preset=presetName
- Build:
cmake --build --preset=presetName
- Test:
ctest --preset=presetName
- Package
cpack --preset=presetName
- Some combo of the above steps:
cmake --workflow=presetName
This starts to get really close to the typical length of wrapper script commands every team I've been on makes to shorten their cmake commands so I'm hoping I could convince more folks to ditch them and just use cmake directly.
What do you think?