remove kludge to set TORRENT_DEBUG

This commit is contained in:
Steven Siloti 2017-07-08 13:23:19 -07:00 committed by Arvid Norberg
parent 023ff527b7
commit 6343794900
1 changed files with 2 additions and 3 deletions

View File

@ -179,9 +179,6 @@ option(libiconv "enable linking against system libiconv" OFF)
option(logging "build with logging" ON)
option(build_tests "build tests" OFF)
# add_definitions() doesn't seem to let you say wich build type to apply it to
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DTORRENT_DEBUG")
find_package(Threads REQUIRED)
include_directories(${includes})
@ -242,6 +239,8 @@ else()
add_library(torrent-rasterbar STATIC ${sources2})
endif()
target_compile_definitions(torrent-rasterbar PUBLIC $<$<CONFIG:Debug>:TORRENT_DEBUG>)
target_compile_definitions(torrent-rasterbar PRIVATE TORRENT_BUILDING_LIBRARY)
if (build_tests)