Fix wrong build flags when COVERAGE is not defined

This commit is contained in:
Benoit Blanchon
2024-05-15 20:41:21 +02:00
parent 5d1aa04e21
commit 4b779a7c1d

View File

@ -1,3 +1,7 @@
if(NOT DEFINED COVERAGE)
set(COVERAGE OFF)
endif()
if(CMAKE_CXX_COMPILER_ID MATCHES "(GNU|Clang)")
add_compile_options(
-pedantic