From d62796240885ff46c98c10dfb5a9b8327f916e82 Mon Sep 17 00:00:00 2001 From: Zephyron Date: Sat, 27 Sep 2025 21:39:28 +1000 Subject: [PATCH] cmake: exclude Boost::process on Android Boost::process is not available on Android, causing build failures. Conditionally link it only on non-Android platforms. Signed-off-by: Zephyron --- src/core/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 0b7f26dc1..9533471e8 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1221,7 +1221,11 @@ else() endif() target_link_libraries(core PUBLIC common PRIVATE audio_core hid_core network video_core nx_tzdb tz) -target_link_libraries(core PUBLIC Boost::headers Boost::process PRIVATE fmt::fmt nlohmann_json::nlohmann_json mbedtls RenderDoc::API) +if(ANDROID) + target_link_libraries(core PUBLIC Boost::headers PRIVATE fmt::fmt nlohmann_json::nlohmann_json mbedtls RenderDoc::API) +else() + target_link_libraries(core PUBLIC Boost::headers Boost::process PRIVATE fmt::fmt nlohmann_json::nlohmann_json mbedtls RenderDoc::API) +endif() if (MINGW) target_link_libraries(core PRIVATE ${MSWSOCK_LIBRARY}) endif()