Правка переменной
This commit is contained in:
@ -3,7 +3,7 @@ function(add_code_coverage)
|
|||||||
|
|
||||||
find_program(LCOV_EXE NAMES lcov)
|
find_program(LCOV_EXE NAMES lcov)
|
||||||
find_program(GENHTML_EXE NAMES genhtml)
|
find_program(GENHTML_EXE NAMES genhtml)
|
||||||
target_compile_options(_target PUBLIC "--coverage")
|
target_compile_options(${_target} PUBLIC "--coverage")
|
||||||
|
|
||||||
if(LCOV_EXE)
|
if(LCOV_EXE)
|
||||||
add_custom_target(coverage-${_target}
|
add_custom_target(coverage-${_target}
|
||||||
|
Reference in New Issue
Block a user