Using -DCMAKE_BUILD_TYPE=Coverage
to configure the build for coverage analysis has a flaw as build types are not defined at the configuration stage for multi-config generators.
This PR implements the idea suggested here.
Please note that both added to the README.md
commands, cmake --build build
and ctest --test-dir build
, accept the -j $(nproc)
option to parallelize work.
Drafted as it is based on #1234.