summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 112a1b2..04c53c7 100644
--- a/cmake/cmake.d/01-build_options.cmake
+++ b/cmake/cmake.d/01-build_options.cmake
@@ -104,7 +104,7 @@ IF(HAVE_LIBEFENCE)
SET(libefence_LIBRARIES "-lefence")
list (APPEND link_libraries ${libefence_LIBRARIES})
ENDIF(HAVE_LIBEFENCE)
-ENDIF(CMAKE_BUILD_TYPE MATCHES DEBUG)
+ENDIF(CMAKE_BUILD_TYPE MATCHES DEBUG AND USE_EFENCE)
# set default include directories
INCLUDE_DIRECTORIES(${EXTRA_INCLUDE_DIRS})