fantana21 / CppProjectTemplate

Based on cmake-init but adapted to our needs and preferences
MIT License
0 stars 0 forks source link

Set up CI with GitHub Actions #7

Closed PatrickKa closed 1 month ago

PatrickKa commented 2 months ago
PatrickKa commented 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.