From 804696cd3d3434da467df8d0417782ca8c0d61be Mon Sep 17 00:00:00 2001 From: tristan Date: Thu, 26 Dec 2024 21:03:16 +0100 Subject: [PATCH] fix: geninfo ignore line mismatch --- cmake/FindLcov.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/FindLcov.cmake b/cmake/FindLcov.cmake index 244d1c2..d4e0188 100644 --- a/cmake/FindLcov.cmake +++ b/cmake/FindLcov.cmake @@ -169,7 +169,7 @@ function (lcov_capture_initial_tgt TNAME) list(APPEND GENINFO_FILES ${OUTFILE}) add_custom_command(OUTPUT ${OUTFILE} COMMAND ${GCOV_ENV} ${GENINFO_BIN} - --quiet --base-directory ${PROJECT_SOURCE_DIR} --initial + --quiet --ignore-errors mismatch --base-directory ${PROJECT_SOURCE_DIR} --initial --gcov-tool ${GCOV_BIN} --output-filename ${OUTFILE} ${GENINFO_EXTERN_FLAG} ${TDIR}/${FILE}.gcno DEPENDS ${TNAME} @@ -269,7 +269,7 @@ function (lcov_capture_tgt TNAME) add_custom_command(OUTPUT ${OUTFILE} COMMAND test -s "${TDIR}/${FILE}.gcda" - && ${GCOV_ENV} ${GENINFO_BIN} --quiet --base-directory + && ${GCOV_ENV} ${GENINFO_BIN} --quiet --ignore-errors mismatch --base-directory ${PROJECT_SOURCE_DIR} --gcov-tool ${GCOV_BIN} --output-filename ${OUTFILE} ${GENINFO_EXTERN_FLAG} ${TDIR}/${FILE}.gcda