Skip to content

Commit 353a30e

Browse files
committed
Fix coverage target for GCC (lcov/geninfo):
- Added --ignore-errors mismatch to avoid geninfo line mismatch errors - Added --rc geninfo_unexecuted_blocks=1 to silence GCC warnings
1 parent 4882d86 commit 353a30e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Code/Source/solver/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ if(ENABLE_COVERAGE)
287287
# add coverage target
288288
add_custom_target(coverage
289289
# gather data
290-
COMMAND ${LCOV} --directory . --capture --output-file coverage.info
290+
COMMAND ${LCOV} --directory . --capture --output-file coverage.info --ignore-errors mismatch --rc geninfo_unexecuted_blocks=1
291291
# exclude externals
292292
COMMAND ${LCOV} --remove coverage.info -o coverage.info '/usr/*' '/opt/*' '${PROJECT_SOURCE_DIR}/ThirdParty/*' '/Library/*' 'v1/*'
293293
# generate report

0 commit comments

Comments
 (0)