diff --git a/CMakeLists.txt b/CMakeLists.txt index c9fcb2d085..de0c7ef36e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -470,6 +470,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 @@ -532,7 +534,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)