Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

[cmake] set boost components as optional (#2807)

cruetere33d426ac4df
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b61bb49359..796a04b862 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -532,11 +532,7 @@ else()
find_package(zstd 1.5 REQUIRED MODULE)
# wow
- if (PLATFORM_LINUX)
- find_package(Boost 1.57.0 CONFIG REQUIRED headers context system fiber)
- else()
- find_package(Boost 1.57.0 CONFIG REQUIRED)
- endif()
+ find_package(Boost 1.57.0 CONFIG REQUIRED OPTIONAL_COMPONENTS headers context system fiber)
if (CMAKE_SYSTEM_NAME STREQUAL "Linux" OR ANDROID)
find_package(gamemode 1.7 MODULE)