mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-05-02 00:44:43 -05:00
Remove if guard on libtorrent's find_package(Boost). Enable Boost multithreading. (#341)
This commit is contained in:
committed by
Alexander Bock
parent
bb9cd19bb6
commit
46179922b7
@@ -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})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user