summaryrefslogtreecommitdiffstats
path: root/cmake/cmake.d
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-08-08 10:26:06 +0200
commit70cf8fdb919aae05088346804436f6df8ce7019d (patch)
tree0b36db310dfa9ba6921f2d247c02cf744a7f2090 /cmake/cmake.d
parent3c99b8a2cb7b784dcb5f23aa63345d60bfe9952d (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')
-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})