Remove if guard on libtorrent's find_package(Boost). Enable Boost multithreading. (#341)

This commit is contained in:
Matthew Territo
2017-07-01 10:51:19 -06:00
committed by Alexander Bock
parent bb9cd19bb6
commit 46179922b7
+3 -4
View File
@@ -185,10 +185,9 @@ if (NOT MSVC)
endif ()
# Boost
set(Boost_USE_STATIC_LIBS ON)
if (NOT DEFINED Boost_INCLUDE_DIR OR NOT DEFINED Boost_LIBRARIES)
find_package(Boost COMPONENTS REQUIRED system chrono date_time thread)
endif ()
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
find_package(Boost COMPONENTS REQUIRED system chrono date_time thread)
target_include_directories(libtorrent PUBLIC ${Boost_INCLUDE_DIR})
target_link_libraries(libtorrent ${Boost_LIBRARIES})