summaryrefslogtreecommitdiffstats
path: root/cmake/cmake.d/01-build_options.cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-08-08 10:24:35 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-10-15 18:22:48 +0200
commitb4dbdc698b0b9d26bd5b6278af089f7ffb6fff5c (patch)
tree176b87b3ec9178f6ada7606f41bdab068cf9c810 /cmake/cmake.d/01-build_options.cmake
parent6b119a365b6c04279104f123456ed841b2ce987f (diff)
Missing flag for COVERAGE build type
Change-Id: Icebe1850e5949c277722ac83958f73c0eed493c7 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake/cmake.d/01-build_options.cmake')
-rw-r--r--cmake/cmake.d/01-build_options.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/cmake.d/01-build_options.cmake b/cmake/cmake.d/01-build_options.cmake
index 18aff71..3be92ba 100644
--- a/cmake/cmake.d/01-build_options.cmake
+++ b/cmake/cmake.d/01-build_options.cmake
@@ -121,6 +121,9 @@ IF(HAVE_LIBEFENCE)
list (APPEND link_libraries ${libefence_LIBRARIES})
ENDIF(HAVE_LIBEFENCE)
ENDIF(CMAKE_BUILD_TYPE MATCHES DEBUG AND USE_EFENCE)
+IF(CMAKE_BUILD_TYPE MATCHES COVERAGE)
+ list (APPEND link_libraries -coverage)
+ENDIF(CMAKE_BUILD_TYPE MATCHES COVERAGE)
# set default include directories
INCLUDE_DIRECTORIES(${EXTRA_INCLUDE_DIRS})