Explicitly set NDEBUG for non-debug builds.

This commit is contained in:
tastytea 2020-01-05 12:44:38 +01:00
parent 4cbda2c091
commit 6edc461c57
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 5 additions and 0 deletions

View File

@ -29,6 +29,11 @@ set(CMAKE_CXX_EXTENSIONS OFF)
include(debug_flags)
# Disable debug log.
if(NOT ${CMAKE_BUILD_TYPE} STREQUAL "Debug")
add_definitions("-DNDEBUG")
endif()
add_subdirectory(src)
add_subdirectory(include)