Define some more missing CMake variables

This commit is contained in:
John Wiegley 2012-05-20 05:30:55 -05:00
parent 9c9534d562
commit 8faae66638

View file

@ -24,11 +24,15 @@ option(BUILD_EMACSLISP "Build and install ledger-mode for Emacs" OFF)
if(BUILD_DEBUG) if(BUILD_DEBUG)
set(CMAKE_BUILD_TYPE Debug) set(CMAKE_BUILD_TYPE Debug)
set(DEBUG_MODE 1) set(DEBUG_MODE 1)
set(NDEBUG 0)
elseif(NO_ASSERTS) elseif(NO_ASSERTS)
set(CMAKE_BUILD_TYPE Release) set(CMAKE_BUILD_TYPE Release)
set(DEBUG_MODE 0)
set(NDEBUG 1) set(NDEBUG 1)
else() else()
set(CMAKE_BUILD_TYPE Release) set(CMAKE_BUILD_TYPE Release)
set(DEBUG_MODE 0)
set(NDEBUG 0)
endif() endif()
######################################################################## ########################################################################