From 8faae6663862f186f5628c23f645384e7d30587a Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 20 May 2012 05:30:55 -0500 Subject: Define some more missing CMake variables --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 277de435..f60dcf7e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,11 +24,15 @@ option(BUILD_EMACSLISP "Build and install ledger-mode for Emacs" OFF) if(BUILD_DEBUG) set(CMAKE_BUILD_TYPE Debug) set(DEBUG_MODE 1) + set(NDEBUG 0) elseif(NO_ASSERTS) set(CMAKE_BUILD_TYPE Release) + set(DEBUG_MODE 0) set(NDEBUG 1) else() set(CMAKE_BUILD_TYPE Release) + set(DEBUG_MODE 0) + set(NDEBUG 0) endif() ######################################################################## -- cgit v1.2.3