Explicitly set NDEBUG for non-debug builds.
This commit is contained in:
parent
4cbda2c091
commit
6edc461c57
|
@ -29,6 +29,11 @@ set(CMAKE_CXX_EXTENSIONS OFF)
|
||||||
|
|
||||||
include(debug_flags)
|
include(debug_flags)
|
||||||
|
|
||||||
|
# Disable debug log.
|
||||||
|
if(NOT ${CMAKE_BUILD_TYPE} STREQUAL "Debug")
|
||||||
|
add_definitions("-DNDEBUG")
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(src)
|
add_subdirectory(src)
|
||||||
add_subdirectory(include)
|
add_subdirectory(include)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user