I’m trying to use the
--build-and-test option with
ctest in conjunction with presets. I’m using Ninja Multi-Config as my generator. My test presets include both the
configuration fields yet when I try to use
ctest --build-and-test --preset=mypreset I still get:
--build-and-test requires that the generator be provided using the --build-generator command line option.
It seems based on the information in the preset that
ctest should be able to figure this out on its own, any reason it doesn’t?