diff --git a/CMakeLists.txt b/CMakeLists.txt index e64a888..f634f80 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)