Just to add to the above…
By adding an extra argument to “cmake --build” and “ctest” that tells them which configure preset to use, then cmake can obtain the build directory in its usual way - and use that to cd
to the build space…
This saves users from:
- Having to script the build location
- Having to create a load of boiler-plate duplicated build and test configuration, solely to specify the build location