Make coverage optional for debug builds by introducing CHAOS_COVERAGE

flag.
This commit is contained in:
hashlag
2026-07-06 02:44:37 +03:00
parent f9dbca34c7
commit e0768cde3c
2 changed files with 4 additions and 2 deletions
+3 -1
View File
@@ -31,7 +31,9 @@ target_include_directories(ChaosTests PRIVATE
target_compile_options(ChaosTests PRIVATE -Wunused -Werror=unused)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
option(CHAOS_COVERAGE "Enable coverage" OFF)
if(CHAOS_COVERAGE)
target_compile_options(ChaosTests PRIVATE --coverage)
target_link_options(ChaosTests PRIVATE --coverage)
endif()