Make sure we compile release builds with NDEBUG defined (to disable asserts).
This commit is contained in:
parent
1fbde2b0fd
commit
f6f7c7a3a4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue