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:
parent
735fd5c0ce
commit
feb96d7e0b
@ -47,17 +47,17 @@ set(HDRS
|
|||||||
"include/neocomm/node.hpp")
|
"include/neocomm/node.hpp")
|
||||||
|
|
||||||
# Define C++ compiler flags
|
# 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_DEBUG "-g -O0")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
set(CMAKE_CXX_FLAGS_RELEASE "-O3")
|
||||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g -O3")
|
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "-g -O3")
|
||||||
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os")
|
set(CMAKE_CXX_FLAGS_MINSIZEREL "-Os")
|
||||||
|
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "debug" OR CMAKE_BUILD_TYPE STREQUAL "relwithdebinfo")
|
#if(CMAKE_BUILD_TYPE STREQUAL "debug" OR CMAKE_BUILD_TYPE STREQUAL "relwithdebinfo")
|
||||||
add_definitions(-DDEBUG)
|
#add_definitions(-DDEBUG)
|
||||||
else()
|
#else()
|
||||||
add_definitions(-DNDEBUG)
|
#add_definitions(-DNDEBUG)
|
||||||
endif()
|
#endif()
|
||||||
|
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
add_definitions(-DWOE32)
|
add_definitions(-DWOE32)
|
||||||
|
Loading…
Reference in New Issue
Block a user