Skip to content

Commit

Permalink
Predefine DEBUG macro for debug build types.
Browse files Browse the repository at this point in the history
  • Loading branch information
Davi Arnaut committed Apr 4, 2012
1 parent ebb7057 commit 2cbb5bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ set(Boost_USE_STATIC_LIBS TRUE)
find_package(Boost REQUIRED system thread regex)
include_directories(${Boost_INCLUDE_DIRS})

# Add DEBUG definition for debug build types.
if (CMAKE_BUILD_TYPE STREQUAL "Debug" OR
CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
add_definitions("-DDEBUG")
endif()

add_executable(replication_booster ${SOURCE})
target_link_libraries(replication_booster
${Boost_LIBRARIES} ${Replication_LIBRARY} ${MySQL_LIBRARY})
Expand Down

0 comments on commit 2cbb5bd

Please sign in to comment.