summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-04-04 14:54:22 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-04-04 14:54:22 +0200
commit20789d94fe9706e56bf6718f81452ab4f1b0125e (patch)
tree956a6d9561b999642b51848c1488b2b66cad45e2 /CMakeLists.txt
parentede362db9ea82b85a531849c21582f1692bf0d4d (diff)
Improve debugging options
Change-Id: I3550a4c2500b98efa985e678217e3d91bc8ca4c6 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt10
1 files changed, 1 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8f4b9919..c5a1e7e0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -50,20 +50,12 @@ add_compile_options(-fPIC)
add_compile_options(-g)
set(CMAKE_C_FLAGS_PROFILING "-g -O2 -pg -Wp,-U_FORTIFY_SOURCE")
-set(CMAKE_C_FLAGS_DEBUG "-g -O2 -ggdb -Wp,-U_FORTIFY_SOURCE")
+set(CMAKE_C_FLAGS_DEBUG "-g -ggdb -Wp,-U_FORTIFY_SOURCE")
set(CMAKE_C_FLAGS_RELEASE "-g -O2")
set(CMAKE_C_FLAGS_CCOV "-g -O2 --coverage")
###########################################################################
-IF(CMAKE_BUILD_TYPE MATCHES Debug)
- CHECK_LIBRARY_EXISTS(efence malloc "" HAVE_LIBEFENCE)
- IF(HAVE_LIBEFENCE)
- MESSAGE(STATUS "Linking with ElectricFence for debugging purposes...")
- SET(libefence_LIBRARIES "-lefence")
- ENDIF(HAVE_LIBEFENCE)
-ENDIF(CMAKE_BUILD_TYPE MATCHES Debug)
-
PKG_CHECK_MODULES(json-c REQUIRED json-c)
INCLUDE(FindThreads)