Skip to content

Commit

Permalink
fix: geninfo ignore line mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
panzergame committed Dec 26, 2024
1 parent d107592 commit 804696c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/FindLcov.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 804696c

Please sign in to comment.