Remove uses of USES_TERMINAL without COMMAND again as it is not possible

This commit is contained in:
Martchus 2021-03-17 21:27:21 +01:00
parent 3c8eb5a333
commit cd43879390
1 changed files with 3 additions and 10 deletions

View File

@ -254,10 +254,7 @@ if (CLANG_SOURCE_BASED_COVERAGE_AVAILABLE)
endif () endif ()
# add target for the coverage reports # add target for the coverage reports
add_custom_target( add_custom_target("${META_TARGET_NAME}_tests_coverage_summary" DEPENDS ${COVERAGE_REPORT_FILES})
"${META_TARGET_NAME}_tests_coverage_summary"
DEPENDS ${COVERAGE_REPORT_FILES}
USES_TERMINAL)
# NOTE: Those commands have been added before the release of LLVM 5 where coverage reports with statistics per file # NOTE: Those commands have been added before the release of LLVM 5 where coverage reports with statistics per file
# could not be generated. # could not be generated.
@ -275,10 +272,7 @@ if (CLANG_SOURCE_BASED_COVERAGE_AVAILABLE)
COMMAND awk -f "${OVERALL_COVERAGE_AKW_SCRIPT}" "${COVERAGE_REPORT_FILE}" > "${COVERAGE_OVERALL_REPORT_FILE}" COMMAND awk -f "${OVERALL_COVERAGE_AKW_SCRIPT}" "${COVERAGE_REPORT_FILE}" > "${COVERAGE_OVERALL_REPORT_FILE}"
COMMENT "Generating coverage report (overall figures)" COMMENT "Generating coverage report (overall figures)"
DEPENDS "${OVERALL_COVERAGE_AKW_SCRIPT}" "${COVERAGE_REPORT_FILE}") DEPENDS "${OVERALL_COVERAGE_AKW_SCRIPT}" "${COVERAGE_REPORT_FILE}")
add_custom_target( add_custom_target("${META_TARGET_NAME}_tests_coverage_overall_summary" DEPENDS "${COVERAGE_OVERALL_REPORT_FILE}")
"${META_TARGET_NAME}_tests_coverage_overall_summary"
DEPENDS "${COVERAGE_OVERALL_REPORT_FILE}"
USES_TERMINAL)
# generate HTML document showing covered/uncovered code # generate HTML document showing covered/uncovered code
add_custom_command( add_custom_command(
@ -297,8 +291,7 @@ if (CLANG_SOURCE_BASED_COVERAGE_AVAILABLE)
"${META_TARGET_NAME}_tests_coverage" "${META_TARGET_NAME}_tests_coverage"
DEPENDS ${COVERAGE_REPORT_FILES} DEPENDS ${COVERAGE_REPORT_FILES}
DEPENDS "${COVERAGE_OVERALL_REPORT_FILE}" DEPENDS "${COVERAGE_OVERALL_REPORT_FILE}"
DEPENDS "${COVERAGE_HTML_REPORT_FILE}" DEPENDS "${COVERAGE_HTML_REPORT_FILE}")
USES_TERMINAL)
# add targets to global coverage target # add targets to global coverage target
if (NOT TARGET coverage) if (NOT TARGET coverage)