[cmake] proper link to Boost::context

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2025-10-03 23:07:40 -04:00 committed by lizzie
parent 0c77f965db
commit 387dd95404
No known key found for this signature in database
GPG key ID: 00287378CADCAB13

View file

@ -475,6 +475,8 @@ if (YUZU_USE_CPM)
target_compile_options(boost_icl INTERFACE -Wno-shadow)
target_compile_options(boost_asio INTERFACE -Wno-conversion -Wno-implicit-fallthrough)
endif()
elseif (PLATFORM_LINUX OR APPLE)
find_package(Boost 1.57.0 REQUIRED headers context system fiber)
endif()
# fmt
@ -537,7 +539,11 @@ else()
find_package(zstd 1.5 REQUIRED MODULE)
# wow
find_package(Boost 1.57.0 CONFIG REQUIRED OPTIONAL_COMPONENTS headers context system fiber)
if (PLATFORM_LINUX OR APPLE)
find_package(Boost 1.57.0 REQUIRED headers context system fiber)
else()
find_package(Boost 1.57.0 REQUIRED)
endif()
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" OR ANDROID)
find_package(gamemode 1.7 MODULE)