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

Replace unix `find` command by cmake instructions

parent f79286bd
No related branches found
No related tags found
1 merge request!37Feature/language
......@@ -252,7 +252,9 @@ if("${CMAKE_BUILD_TYPE}" STREQUAL "Coverage")
add_custom_target(coverage-clean-up
ALL
COMMAND find "${PUGS_BINARY_DIR}" -name \*.gcda -exec rm -f {} +;
COMMAND ${CMAKE_COMMAND}
-DPUGS_BINARY_DIR="${PUGS_BINARY_DIR}"
-P ${PUGS_SOURCE_DIR}/cmake/CoverageRemoveObsoleteFiles.cmake
COMMENT "Removing obsolete gcda to perform a net coverage."
)
......
# ------------------------------------------------------------------------------
# Remove obsolete generated files that could last after a failing test-suite run
# These are generally trailing .gcda files
# ------------------------------------------------------------------------------
file(GLOB_RECURSE GCDA_FILE_LIST "${PUGS_BINARY_DIR}/*.gcda")
if(GCDA_FILE_LIST)
file(REMOVE ${GCDA_FILE_LIST})
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment