The DEBUG macro never got set, causes verbose log messages to never be compiled in.

This commit is contained in:
Jan Vidar Krey 2014-07-30 11:46:03 +02:00
parent b5bedfe9e4
commit 48b76f7bd1

View File

@ -32,6 +32,10 @@ if (BIGENDIAN)
add_definitions(-DARCH_BIGENDIAN) add_definitions(-DARCH_BIGENDIAN)
endif() endif()
if (NOT RELEASE)
add_definitions(-DDEBUG)
endif()
if (SSL_SUPPORT) if (SSL_SUPPORT)
if (USE_OPENSSL) if (USE_OPENSSL)
find_package(OpenSSL) find_package(OpenSSL)
@ -205,14 +209,14 @@ endif()
configure_file ("${PROJECT_SOURCE_DIR}/version.h.in" "${PROJECT_SOURCE_DIR}/version.h") configure_file ("${PROJECT_SOURCE_DIR}/version.h.in" "${PROJECT_SOURCE_DIR}/version.h")
mark_as_advanced(FORCE CMAKE_BUILD_TYPE) # mark_as_advanced(FORCE CMAKE_BUILD_TYPE)
if (RELEASE) # if (RELEASE)
set(CMAKE_BUILD_TYPE Release) # set(CMAKE_BUILD_TYPE Release)
add_definitions(-DNDEBUG) # add_definitions(-DNDEBUG)
else() #else()
set(CMAKE_BUILD_TYPE Debug) # set(CMAKE_BUILD_TYPE Debug)
add_definitions(-DDEBUG) # add_definitions(-DDEBUG)
endif() #endif()
if (LOWLEVEL_DEBUG) if (LOWLEVEL_DEBUG)
add_definitions(-DLOWLEVEL_DEBUG) add_definitions(-DLOWLEVEL_DEBUG)