File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 22# Distributed under the MIT software license, see the accompanying
33# file COPYING or https://opensource.org/license/mit/.
44
5- if (NOT DEFINED LCOV_OPTS)
6- set (LCOV_OPTS "$ENV{LCOV_OPTS} " )
7- endif ()
8- if (NOT DEFINED GENHTML_OPTS)
9- set (GENHTML_OPTS "$ENV{GENHTML_OPTS} " )
10- endif ()
11-
125if ("@CMAKE_CXX_COMPILER_ID@" STREQUAL "Clang" )
136 find_program (LLVM_COV_EXECUTABLE llvm-cov REQUIRED)
147 set (COV_TOOL "${LLVM_COV_EXECUTABLE} gcov" )
@@ -31,8 +24,8 @@ separate_arguments(LCOV_OPTS)
3124set (LCOV_COMMAND ${LCOV_EXECUTABLE} --gcov-tool ${CMAKE_CURRENT_LIST_DIR} /cov_tool_wrapper.sh ${LCOV_OPTS} )
3225
3326find_program (GENHTML_EXECUTABLE genhtml REQUIRED)
34- separate_arguments (GENHTML_OPTS )
35- set (GENHTML_COMMAND ${GENHTML_EXECUTABLE} --show-details ${GENHTML_OPTS } )
27+ separate_arguments (HTML_OPTS )
28+ set (GENHTML_COMMAND ${GENHTML_EXECUTABLE} --show-details ${HTML_OPTS } )
3629
3730find_program (GREP_EXECUTABLE grep REQUIRED)
3831find_program (AWK_EXECUTABLE awk REQUIRED)
Original file line number Diff line number Diff line change @@ -508,8 +508,12 @@ enabled by setting `LCOV_OPTS="--rc branch_coverage=1"`:
508508cmake -DLCOV_OPTS="--rc branch_coverage=1" -P build/Coverage.cmake
509509```
510510
511- GENHTML_OPTS can be specified to provide options to genhtml, the program that generates the
512- html report from lcov: ` GENHTML_OPTS="--exclude boost" ` .
511+ HTML_OPTS can be specified to provide options to genhtml, the program that generates the
512+ html report from lcov: ` HTML_OPTS="--exclude boost" ` .
513+
514+ ```
515+ cmake -DHTML_OPTS="--exclude boost" -P build/Coverage.cmake
516+ ```
513517
514518To enable test parallelism:
515519```
You can’t perform that action at this time.
0 commit comments