Skip to content

Commit

Permalink
Avoid naming collision in Debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
alexf91 authored and csete committed Jan 26, 2020
1 parent 91fa8b4 commit d5f8e00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d5f8e00

Please sign in to comment.