diff options
author | Alexander Harkness <me@bearbin.net> | 2020-08-30 17:32:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-30 17:32:03 +0200 |
commit | a3b5cba6be4dd1dbdcc6a0ce7f52fc429912d042 (patch) | |
tree | c54d171cf6749f68f6492f3f7c9e71eafb622f61 /CMakeLists.txt | |
parent | Entities can fail to add into a chunk (diff) | |
download | cuberite-a3b5cba6be4dd1dbdcc6a0ce7f52fc429912d042.tar cuberite-a3b5cba6be4dd1dbdcc6a0ce7f52fc429912d042.tar.gz cuberite-a3b5cba6be4dd1dbdcc6a0ce7f52fc429912d042.tar.bz2 cuberite-a3b5cba6be4dd1dbdcc6a0ce7f52fc429912d042.tar.lz cuberite-a3b5cba6be4dd1dbdcc6a0ce7f52fc429912d042.tar.xz cuberite-a3b5cba6be4dd1dbdcc6a0ce7f52fc429912d042.tar.zst cuberite-a3b5cba6be4dd1dbdcc6a0ce7f52fc429912d042.zip |
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a602d268a..6fd2f2b22 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) |