From 9e6956a93fe9632751225f0a535f926e87a760ab Mon Sep 17 00:00:00 2001 From: Zephyron Date: Sat, 27 Sep 2025 11:52:46 +1000 Subject: [PATCH] Fix Android build by conditionally excluding boost_process component - Add Android check to only request boost context component on Android Signed-off-by: Zephyron --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a6cf4a95..c14e92c5e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -305,7 +305,11 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin) # ======================================================================= # Enforce the search mode of non-required packages for better and shorter failure messages -find_package(Boost 1.79.0 REQUIRED context process) +if(ANDROID) + find_package(Boost 1.79.0 REQUIRED context) +else() + find_package(Boost 1.79.0 REQUIRED context process) +endif() find_package(enet 1.3 MODULE) find_package(fmt 9 REQUIRED) find_package(LLVM 17.0.2 MODULE COMPONENTS Demangle)