1
0
Fork 0

Define _DEBUG macro for tests and main server (#4843)

Cuberite can now ASSERT its own failure once again...

Signed-off-by: @tigerw
This commit is contained in:
Alexander Harkness 2020-08-30 16:32:03 +01:00 committed by GitHub
parent f84e805453
commit a3b5cba6be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,11 @@ set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
# TODO: use standard NDEBUG in place of _DEBUG
if("${CMAKE_BUILD_TYPE}" MATCHES "DEBUG")
add_definitions(-D_DEBUG)
endif()
# The need for speed (in Release):
if(WHOLE_PROGRAM_OPTIMISATION)
include(CheckIPOSupported)