We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f71aeed commit 0855a7dCopy full SHA for 0855a7d
1 file changed
src/CMakeLists.txt
@@ -39,10 +39,10 @@ target_compile_features(nuclear PUBLIC cxx_std_14)
39
40
option(ENABLE_COVERAGE "Compile with coverage support enabled.")
41
if(ENABLE_COVERAGE)
42
- if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
43
- message(WARNING "Coverage is enabled but not build in debug mode. Coverage results may be misleading.")
44
- endif()
45
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
+ if(NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
+ message(WARNING "Coverage is enabled but not build in debug mode. Coverage results may be misleading.")
+ endif()
46
target_compile_options(nuclear PUBLIC -fprofile-arcs -ftest-coverage -fprofile-abs-path -fprofile-update=atomic)
47
target_link_options(nuclear PUBLIC -fprofile-arcs)
48
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
0 commit comments