mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
284 B
CMake
10 lines
284 B
CMake
6 years ago
|
if (WITH_COVERAGE)
|
||
|
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||
|
add_compile_options( -fprofile-instr-generate -fcoverage-mapping )
|
||
|
link_libraries( -fprofile-instr-generate )
|
||
|
else()
|
||
|
add_compile_options( --coverage -g0 )
|
||
|
link_libraries( --coverage )
|
||
|
endif()
|
||
|
endif()
|