Temporarily comment out debug flags.

'Cause whoever programs the OpenDHT headers thought it would be a GREAT
idea to use `DEBUG' as a fucking variable name in the actual code. Yes,
they used caps and all.
This commit is contained in:
Nicolás Ortega Froysa 2018-09-01 21:25:35 +02:00
parent 735fd5c0ce
commit feb96d7e0b
No known key found for this signature in database
GPG Key ID: FEC70E3BAE2E69BF

View File

@ -47,17 +47,17 @@ set(HDRS
"include/neocomm/node.hpp")
# Define C++ compiler flags
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall -Wextra -Wpedantic -Werror -Wfatal-errors -pedantic-errors -fno-elide-constructors")
set(CMAKE_CXX_FLAGS "-std=c++14 -Wall -Wextra -Wpedantic -Wfatal-errors -Werror -pedantic-errors -fno-elide-constructors")
set(CMAKE_CXX_FLAGS_DEBUG "-g -O0")
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g -O3")
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os")
if(CMAKE_BUILD_TYPE STREQUAL "debug" OR CMAKE_BUILD_TYPE STREQUAL "relwithdebinfo")
add_definitions(-DDEBUG)
else()
add_definitions(-DNDEBUG)
endif()
#if(CMAKE_BUILD_TYPE STREQUAL "debug" OR CMAKE_BUILD_TYPE STREQUAL "relwithdebinfo")
#add_definitions(-DDEBUG)
#else()
#add_definitions(-DNDEBUG)
#endif()
if(WIN32)
add_definitions(-DWOE32)