Link against all required Boost components
This commit is contained in:
parent
b10bcac0cf
commit
5b478bdb9c
3 changed files with 4 additions and 2 deletions
|
|
@ -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
|
# Enforce the search mode of non-required packages for better and shorter failure messages
|
||||||
if (NOT YUZU_USE_CPM)
|
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(enet 1.3 MODULE)
|
||||||
find_package(fmt REQUIRED)
|
find_package(fmt REQUIRED)
|
||||||
if (YUZU_USE_LLVM_DEMANGLE)
|
if (YUZU_USE_LLVM_DEMANGLE)
|
||||||
|
|
|
||||||
|
|
@ -259,7 +259,7 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||||
)
|
)
|
||||||
endif()
|
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)
|
if (YUZU_USE_CPM)
|
||||||
target_link_libraries(common PUBLIC Boost::icl)
|
target_link_libraries(common PUBLIC Boost::icl)
|
||||||
endif()
|
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)
|
target_link_libraries(core PUBLIC Boost::headers PRIVATE fmt::fmt nlohmann_json::nlohmann_json mbedtls RenderDoc::API)
|
||||||
if (YUZU_USE_CPM)
|
if (YUZU_USE_CPM)
|
||||||
target_link_libraries(core PUBLIC Boost::heap Boost::asio Boost::process Boost::crc)
|
target_link_libraries(core PUBLIC Boost::heap Boost::asio Boost::process Boost::crc)
|
||||||
|
else()
|
||||||
|
target_link_libraries(core PUBLIC Boost::system Boost::fiber)
|
||||||
endif()
|
endif()
|
||||||
if (MINGW)
|
if (MINGW)
|
||||||
target_link_libraries(core PRIVATE ${MSWSOCK_LIBRARY})
|
target_link_libraries(core PRIVATE ${MSWSOCK_LIBRARY})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue