From f6f7c7a3a40e58f908629786ec80842c9872bf6f Mon Sep 17 00:00:00 2001 From: Jan Vidar Krey Date: Tue, 5 Feb 2013 22:44:31 +0100 Subject: [PATCH] Make sure we compile release builds with NDEBUG defined (to disable asserts). --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 07bf1c9..1a95115 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)