File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ separate_arguments(LCOV_OPTS)
2424set (LCOV_COMMAND ${LCOV_EXECUTABLE} --gcov-tool ${CMAKE_CURRENT_LIST_DIR} /cov_tool_wrapper.sh ${LCOV_OPTS} )
2525
2626find_program (GENHTML_EXECUTABLE genhtml REQUIRED)
27+
28+ # HTML_OPTS is optionally passed via -D flag.
2729# If HTML_OPTS is not provided, implicitly pass LCOV_OPTS to genhtml.
2830separate_arguments (HTML_OPTS)
2931set (GENHTML_OPTS ${HTML_OPTS} )
Original file line number Diff line number Diff line change @@ -508,8 +508,7 @@ enabled by setting `LCOV_OPTS="--rc branch_coverage=1"`:
508508cmake -DLCOV_OPTS="--rc branch_coverage=1" -P build/Coverage.cmake
509509```
510510
511- HTML_OPTS can be specified to provide an options override to genhtml from the default LCOV_OPTS, the program that generates the
512- html report from lcov: ` HTML_OPTS="--exclude boost" ` .
511+ HTML_OPTS can override the genhtml options (which default to LCOV_OPTS).
513512
514513```
515514cmake -DHTML_OPTS="--exclude boost" -P build/Coverage.cmake
You can’t perform that action at this time.
0 commit comments