From d5f8e008253d63b71f5b2cf41651214f9a78e83c Mon Sep 17 00:00:00 2001 From: Alexander Fasching Date: Sun, 26 Jan 2020 11:13:34 +0100 Subject: [PATCH] Avoid naming collision in Debug builds --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e3e92fbbc..0b967414d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)