Fix: efence library inclusion
authorRomain Forlot <romain.forlot@iot.bzh>
Wed, 3 May 2017 09:03:21 +0000 (11:03 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Wed, 3 May 2017 09:03:21 +0000 (11:03 +0200)
Change-Id: I51bc49cb663c61e23407e7da9bc4294344c0e4c0
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
template/etc/macros.cmake

index 4c2b64c..2c53983 100644 (file)
@@ -197,7 +197,7 @@ CHECK_LIBRARY_EXISTS(efence malloc "" HAVE_LIBEFENCE)
 IF(HAVE_LIBEFENCE)
        MESSAGE(STATUS "Linking with ElectricFence for debugging purposes...")
        SET(libefence_LIBRARIES "-lefence")
-       list (APPEND link_libraries libefence_LIBRARIES})
+       list (APPEND link_libraries ${libefence_LIBRARIES})
 ENDIF(HAVE_LIBEFENCE)
 ENDIF(CMAKE_BUILD_TYPE MATCHES DEBUG)