diff options
Diffstat (limited to 'cmake/Modules/EnableCoverage.cmake')
| -rw-r--r-- | cmake/Modules/EnableCoverage.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/Modules/EnableCoverage.cmake b/cmake/Modules/EnableCoverage.cmake index 20be3683..ddb33af7 100644 --- a/cmake/Modules/EnableCoverage.cmake +++ b/cmake/Modules/EnableCoverage.cmake @@ -1,9 +1,9 @@ function(enable_coverage TARGET) target_compile_options("${TARGET}" PUBLIC - "$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:-fcondition-coverage>" - "$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:--coverage>" + "$<$<CXX_COMPILER_ID:GNU,Clang>:-fcondition-coverage>" + "$<$<CXX_COMPILER_ID:GNU,Clang>:--coverage>" ) target_link_options("${TARGET}" PUBLIC - "$<$<AND:$<CXX_COMPILER_ID:GNU,Clang>,$<CONFIG:Debug>>:--coverage>" + "$<$<CXX_COMPILER_ID:GNU,Clang>:--coverage>" ) endfunction() |
