From 5b478bdb9c6417ca026ae5b6f7039c1f12fdba71 Mon Sep 17 00:00:00 2001 From: spectranator Date: Sun, 13 Apr 2025 13:05:27 +0200 Subject: [PATCH] Link against all required Boost components --- CMakeLists.txt | 2 +- src/common/CMakeLists.txt | 2 +- src/core/CMakeLists.txt | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f1034e3d7..5a7073752 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 799d76005..80e999b69 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -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() diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 9489cdb54..7b26e604a 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -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})