bilke / cmake-modules

Additional CMake functionality. Most of the modules are from Ryan Pavlik (https://github.com/rpavlik/cmake-modules)
Boost Software License 1.0
542 stars 215 forks source link

lcov branches: no data found #85

Open jcpince opened 6 months ago

jcpince commented 6 months ago

Hi,

First, thanks so much for sharing this.

Running ubuntu 22.04.3 LTS with the following tools: lcov: LCOV version 1.14 gcov (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0 gcovr 5.0

I ran into an issue where my lcov report would show "branches: no data found".

I found some others who ran into the same issue and adding "--rc lcov_branch_coverage=1" to the targets LCOV_CAPTURE_CMD, LCOV_BASELINE_COUNT_CMD, LCOV_FILTER_CMD and LCOV_GEN_HTML_CMD fixed my issue.

Hope this can help, Best regards, JC