Skip to content

Commit 226b4fe

Browse files
rlalikStableCoder
authored andcommitted
Code coverage: Call ccov-preprocessing target to prepare tree structure before the ccov-all-processing
1 parent 5cd1b66 commit 226b4fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: code-coverage.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -634,15 +634,15 @@ function(add_code_coverage_all_targets)
634634
COMMAND ${LCOV_PATH} --directory ${CMAKE_BINARY_DIR} --capture
635635
--output-file ${COVERAGE_INFO}
636636
COMMAND ${EXCLUDE_COMMAND}
637-
DEPENDS ccov-all-processing)
637+
DEPENDS ccov-preprocessing ccov-all-processing)
638638
else()
639639
add_custom_target(
640640
ccov-all-capture
641641
COMMAND ${CMAKE_COMMAND} -E rm -f ${COVERAGE_INFO}
642642
COMMAND ${LCOV_PATH} --directory ${CMAKE_BINARY_DIR} --capture
643643
--output-file ${COVERAGE_INFO}
644644
COMMAND ${EXCLUDE_COMMAND}
645-
DEPENDS ccov-all-processing)
645+
DEPENDS ccov-preprocessing ccov-all-processing)
646646
endif()
647647

648648
# Generates HTML output of all targets for perusal

0 commit comments

Comments
 (0)