summaryrefslogtreecommitdiffstats
path: root/cmake/cmake.d/01-build_options.cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-24 12:01:37 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-09-24 12:01:37 +0200
commite8461507e9b50f19976d218427915f05c18e6729 (patch)
tree54575a989dd8b5194b588f3b1b4bafa75496a06a /cmake/cmake.d/01-build_options.cmake
parent6393acf1e28c7ae296aef83accebaeb482653c62 (diff)
Make use of LibEfence optional
Change-Id: I22b52611dab0be6021b08d6c6d63bc369df0b4d4 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.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/cmake.d/01-build_options.cmake b/cmake/cmake.d/01-build_options.cmake
index 84649fc..112a1b2 100644
--- a/cmake/cmake.d/01-build_options.cmake
+++ b/cmake/cmake.d/01-build_options.cmake
@@ -97,7 +97,7 @@ foreach (PKG_CONFIG ${PKG_REQUIRED_LIST})
endforeach(PKG_CONFIG)
# Optional LibEfence Malloc debug library
-IF(CMAKE_BUILD_TYPE MATCHES DEBUG)
+IF(CMAKE_BUILD_TYPE MATCHES DEBUG AND USE_EFENCE)
CHECK_LIBRARY_EXISTS(efence malloc "" HAVE_LIBEFENCE)
IF(HAVE_LIBEFENCE)
MESSAGE(STATUS "Linking with ElectricFence for debugging purposes...")