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:
parent
f84e805453
commit
a3b5cba6be
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user