Skip to content

Commit e2d638f

Browse files
committed
remove duplicated lines and inline genhtml seperate_arguments
1 parent c115fc1 commit e2d638f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

cmake/script/CoverageInclude.cmake.in

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ endif()
88
if(NOT DEFINED GENHTML_OPTS)
99
set(GENHTML_OPTS "$ENV{GENHTML_OPTS}")
1010
endif()
11-
separate_arguments(LCOV_OPTS)
12-
separate_arguments(GENHTML_OPTS)
13-
14-
list(APPEND LCOV_FILTER_COMMAND -p "CMakeFiles/")
1511

1612
if("@CMAKE_CXX_COMPILER_ID@" STREQUAL "Clang")
1713
find_program(LLVM_COV_EXECUTABLE llvm-cov REQUIRED)
@@ -35,6 +31,7 @@ separate_arguments(LCOV_OPTS)
3531
set(LCOV_COMMAND ${LCOV_EXECUTABLE} --gcov-tool ${CMAKE_CURRENT_LIST_DIR}/cov_tool_wrapper.sh ${LCOV_OPTS})
3632

3733
find_program(GENHTML_EXECUTABLE genhtml REQUIRED)
34+
separate_arguments(GENHTML_OPTS)
3835
set(GENHTML_COMMAND ${GENHTML_EXECUTABLE} --show-details ${GENHTML_OPTS})
3936

4037
find_program(GREP_EXECUTABLE grep REQUIRED)

0 commit comments

Comments
 (0)