Avoid naming collision in Debug builds

This commit is contained in:
Alexander Fasching 2020-01-26 11:13:34 +01:00 committed by Alexandru Csete
parent 91fa8b4925
commit d5f8e00825

View File

@ -38,6 +38,9 @@ if(${CMAKE_BUILD_TYPE} MATCHES "Valgrind")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0")
endif()
# Workaround for naming collision with log4cpp for Debug builds
add_definitions(-DLOG4CPP_FIX_ERROR_COLLISION=1)
# Disable debug outputs in release builds
if(${CMAKE_BUILD_TYPE} MATCHES "Release" OR ${CMAKE_BUILD_TYPE} MATCHES "RelWithDebInfo")
add_definitions(-DQT_NO_DEBUG_OUTPUT)