build BUGFIX instead variable CMAKE_C_FLAGS_COVERAGE, use directly variable CMAKE_C_FLAGS
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 52aff02..346f6fe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -79,7 +79,7 @@
set(COMPILER_PACKED_ATTR "")
endif()
-set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_COVERAGE} -Wall -Wextra -Wno-missing-field-initializers -std=c99")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-missing-field-initializers -std=c99")
set(CMAKE_C_FLAGS_DEBUG "-g3 -O0")
set(CMAKE_C_FLAGS_ABICHECK "-g -Og")
@@ -221,7 +221,7 @@
endif()
if(ENABLE_COVERAGE)
- set(CMAKE_C_FLAGS_COVERAGE "${CMAKE_C_FLAGS} --coverage -fprofile-arcs -ftest-coverage")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} --coverage -fprofile-arcs -ftest-coverage")
endif()
endif()