Closed PatrickKa closed 1 month ago
When using multi-config generators, doctest_discover_tests()
only finds the latest built configuration. If we build the debug and then the release configuration, running ctest
ignores the option --build-config <config>
and only the tests in release built are run. An easy workaround is to ensure that we build the configuration we want to test right before the ctest
call. Rerunning a build with a specific configuration when nothing else has changed is very fast, so that is not an issue.