enabled NDEBUG in Release builds for all compilers

This commit is contained in:
Attila Afra
2019-07-16 14:03:02 +03:00
parent 6241ac736f
commit 096bda1ca2
+2
View File
@@ -146,6 +146,8 @@ elseif(UNIX OR MINGW)
# disable optimizations in debug mode
append(CMAKE_CXX_FLAGS_DEBUG "-O0")
endif()
# disable assertions
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG")
endif()
if(WIN32)