I ran into this scenario again today and did a Google search… my own post was the first result! Does anyone have any advice on how to achieve this yet?
Basically I currently have to do:
cmake --build --preset foo-release && ctest --preset foo-release # etc
Is there a way to have ctest perform the build for the corresponding build preset without having to chain these two commands?