The first commit ensures early error catching.
The second commit adds the -g
flag that was missed during the migration from Autotools.
This PR is intended to be tested with GCC compiler (as clang support is still under scrutiny). Depending on the lcov
version, additional flags -DCMAKE_C_FLAGS="-fprofile-update=atomic" -DCMAKE_CXX_FLAGS="-fprofile-update=atomic"
may be required.