Make sure we compile release builds with NDEBUG defined (to disable asserts).

This commit is contained in:
Jan Vidar Krey 2013-02-05 22:44:31 +01:00
parent 1fbde2b0fd
commit f6f7c7a3a4
1 changed files with 1 additions and 0 deletions

View File

@ -197,6 +197,7 @@ configure_file ("${PROJECT_SOURCE_DIR}/version.h.in" "${PROJECT_SOURCE_DIR}/vers
mark_as_advanced(FORCE CMAKE_BUILD_TYPE)
if (RELEASE)
set(CMAKE_BUILD_TYPE Release)
add_definitions(-DNDEBUG)
else()
set(CMAKE_BUILD_TYPE Debug)
# add_definitions(-DDEBUG)