CMake-codecov icon indicating copy to clipboard operation
CMake-codecov copied to clipboard

CMake module for code coverage

Results 14 CMake-codecov issues
Sort by recently updated
recently updated
newest added

gcovr is easier to use than lcov and better cross-platform. I implemented gcovr support by referring to the gcov code, and tested gcc, including the MinGW platform.

Are there variables exposed to generate branch coverage as it appears to be disabled by default?

Using the repo as third party library using FetchContent failed: ``` FetchContent_Declare( cmake-codecov GIT_REPOSITORY https://github.com/RWTH-HPC/CMake-codecov.git ) FetchContent_MakeAvailable(cmake-codecov) ``` with the following error message: ``` CMake Error at build/_deps/cmake-codecov-src/src/libfoo/CMakeLists.txt:13 (add_coverage): Unknown...

I'm raising this PR to fix a bug when using the code coverage modules with a build that includes the [HDF5 library](https://github.com/HDFGroup/hdf5). HDF5 uses the `CMAKE_REQUIRED_FLAGS` with try_compile, however, because...

This is an attempt to better integrate the Ninja build system (issue #29, but also #6). It is just meant for discussion, for there are still a few things to...

In PR [add support for Ninja #22](https://github.com/RWTH-HPC/CMake-codecov/pull/22), I realized that I had introduced two issues: 1. The gcov file name may exceed the maximum length limit 2. When build gcov...

The same example provided in issue #6 shows that also the support for lcov is failing when using the Ninja generator. ``` $ cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DENABLE_COVERAGE=ON .. $...

I just try to use CMake-codecov (I'm new to lcov, just learning, so sorry if my question is out of scope) I want to automatically call check target before calling...

LLVM clang also understands the gcc options for enabling coverage collection (e.g. `--coverage` and `-fprofile-arcs -ftest-coverage`). But - in that compatibility mode - llvm targets a certain gcc/gcov version. For...

enhancement

Instead of printing the same message over and over again (e.g. if the compiler doesn't support code coverage, but `FindCodecov.cmake` is called more than once), the `find_package_message()` function should be...

enhancement