The DEBUG macro never got set, causes verbose log messages to never be compiled in.
This commit is contained in:
parent
b5bedfe9e4
commit
48b76f7bd1
@ -32,6 +32,10 @@ if (BIGENDIAN)
|
||||
add_definitions(-DARCH_BIGENDIAN)
|
||||
endif()
|
||||
|
||||
if (NOT RELEASE)
|
||||
add_definitions(-DDEBUG)
|
||||
endif()
|
||||
|
||||
if (SSL_SUPPORT)
|
||||
if (USE_OPENSSL)
|
||||
find_package(OpenSSL)
|
||||
@ -205,14 +209,14 @@ endif()
|
||||
|
||||
configure_file ("${PROJECT_SOURCE_DIR}/version.h.in" "${PROJECT_SOURCE_DIR}/version.h")
|
||||
|
||||
mark_as_advanced(FORCE CMAKE_BUILD_TYPE)
|
||||
if (RELEASE)
|
||||
set(CMAKE_BUILD_TYPE Release)
|
||||
add_definitions(-DNDEBUG)
|
||||
else()
|
||||
set(CMAKE_BUILD_TYPE Debug)
|
||||
add_definitions(-DDEBUG)
|
||||
endif()
|
||||
# mark_as_advanced(FORCE CMAKE_BUILD_TYPE)
|
||||
# if (RELEASE)
|
||||
# set(CMAKE_BUILD_TYPE Release)
|
||||
# add_definitions(-DNDEBUG)
|
||||
#else()
|
||||
# set(CMAKE_BUILD_TYPE Debug)
|
||||
# add_definitions(-DDEBUG)
|
||||
#endif()
|
||||
|
||||
if (LOWLEVEL_DEBUG)
|
||||
add_definitions(-DLOWLEVEL_DEBUG)
|
||||
|
Loading…
Reference in New Issue
Block a user