I’m trying to convert this build matrix to CMake presets.
My initial experiment has awful repetition, as each configure preset needs a matching build preset and a test preset.
To test it, I’m running it like this:
$CMAKE_DIR/cmake -S `pwd` --preset=$PRESET $CMAKE_DIR/cmake --build --preset=$PRESET $CMAKE_DIR/ctest --preset=$PRESET
To remove the need for all the repetition of presets, I considered doing this instead:
cmake -S `pwd` --preset=$PRESET cmake --build --preset=ci-build ctest --preset=ci-test
But how will this know which build directory to run in? The problem with that is that some later presets will have a different
Depending on the generator, and whether Unity builds are on, most of them will do this:
And some will do this:
I’d appreciate any advice on any better ways of using CMake presets on CI, to simplify matrices…