Link against all required Boost components
This commit is contained in:
@@ -345,7 +345,7 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
|
||||
|
||||
# Enforce the search mode of non-required packages for better and shorter failure messages
|
||||
if (NOT YUZU_USE_CPM)
|
||||
find_package(Boost 1.86.0 REQUIRED context)
|
||||
find_package(Boost 1.86.0 REQUIRED headers context system fiber)
|
||||
find_package(enet 1.3 MODULE)
|
||||
find_package(fmt REQUIRED)
|
||||
if (YUZU_USE_LLVM_DEMANGLE)
|
||||
|
||||
@@ -259,7 +259,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
)
|
||||
endif()
|
||||
|
||||
target_link_libraries(common PUBLIC Boost::context Boost::headers fmt::fmt microprofile stb::headers Threads::Threads)
|
||||
target_link_libraries(common PUBLIC Boost::headers Boost::context fmt::fmt microprofile stb::headers Threads::Threads)
|
||||
if (YUZU_USE_CPM)
|
||||
target_link_libraries(common PUBLIC Boost::icl)
|
||||
endif()
|
||||
|
||||
@@ -1165,6 +1165,8 @@ target_link_libraries(core PUBLIC common PRIVATE audio_core hid_core network vid
|
||||
target_link_libraries(core PUBLIC Boost::headers PRIVATE fmt::fmt nlohmann_json::nlohmann_json mbedtls RenderDoc::API)
|
||||
if (YUZU_USE_CPM)
|
||||
target_link_libraries(core PUBLIC Boost::heap Boost::asio Boost::process Boost::crc)
|
||||
else()
|
||||
target_link_libraries(core PUBLIC Boost::system Boost::fiber)
|
||||
endif()
|
||||
if (MINGW)
|
||||
target_link_libraries(core PRIVATE ${MSWSOCK_LIBRARY})
|
||||
|
||||
Reference in New Issue
Block a user