Make sure we compile release builds with NDEBUG defined (to disable asserts).
This commit is contained in:
1 parent
1fbde2b0fd
commit
f6f7c7a3a4
1 file changed
+1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user