aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/cmake.d
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-09-14 11:26:55 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-09-14 11:29:14 +0200
commit7fa5e5a2ed49b30498733b96c61d2697f3c30020 (patch)
treee9b6a1d641e249eafe1f2e467cb62e1edde56c69 /cmake/cmake.d
parent76e12e76c7065fb3440312af3e54eae9d40c5254 (diff)
Fix: missing gcov symbol in compiled binaries
Missing link option because of a wrong test against CMAKE_BUILD_TYPE value. Change-Id: I3b0a4cb090f4c53df8868a5f757a11f6046b3e3e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake/cmake.d')
-rw-r--r--cmake/cmake.d/01-build_options.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/cmake.d/01-build_options.cmake b/cmake/cmake.d/01-build_options.cmake
index 28a4ff1..26b001d 100644
--- a/cmake/cmake.d/01-build_options.cmake
+++ b/cmake/cmake.d/01-build_options.cmake
@@ -124,9 +124,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)
+IF(${CMAKE_BUILD_TYPE} MATCHES COVERAGE)
list (APPEND link_libraries -coverage)
-ENDIF(CMAKE_BUILD_TYPE MATCHES COVERAGE)
+ENDIF(${CMAKE_BUILD_TYPE} MATCHES COVERAGE)
# set default include directories
INCLUDE_DIRECTORIES(${EXTRA_INCLUDE_DIRS})