Skip to content
Snippets Groups Projects
Commit 0ab7a5bd authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Added --delete to gcovr second invocation

This allows to perform a correct diagnostic when sources/tests evolve
for non clean build tree
parent 3d834201
No related branches found
No related tags found
No related merge requests found
......@@ -180,7 +180,7 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Coverage")
ALL
COMMAND ${CMAKE_COMMAND} -E remove_directory "${PASTIS_BINARY_DIR}/coverage"
COMMAND ${CMAKE_COMMAND} -E make_directory "${PASTIS_BINARY_DIR}/coverage"
COMMAND ${GCOVR} ${GCOVR_OPTIONS} --html --html-details -o "${PASTIS_BINARY_DIR}/coverage/coverage.html"
COMMAND ${GCOVR} ${GCOVR_OPTIONS} --delete --html --html-details -o "${PASTIS_BINARY_DIR}/coverage/coverage.html"
DEPENDS coverage
COMMENT "Building coverage html report."
WORKING_DIRECTORY "${PASTIS_BINARY_DIR}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment