From 4f99f17aaecc1372d16a6987f29da6b63b3aeeac Mon Sep 17 00:00:00 2001 From: lizzie Date: Sat, 17 Jan 2026 04:12:33 +0000 Subject: [PATCH] [cmake, core/hle] fix no-OpenSSL builds with BCAT news using unguarded httplib Signed-off-by: lizzie --- src/core/CMakeLists.txt | 7 +++++-- src/core/hle/service/bcat/news/builtin_news.cpp | 1 - 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index ec7ce42a1b..5c656f284d 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1216,8 +1216,11 @@ target_link_libraries(core PRIVATE nlohmann_json::nlohmann_json RenderDoc::API MbedTLS::mbedcrypto${MBEDTLS_LIB_SUFFIX} - MbedTLS::mbedtls${MBEDTLS_LIB_SUFFIX} - httplib::httplib) + MbedTLS::mbedtls${MBEDTLS_LIB_SUFFIX}) + +if (ENABLE_WEB_SERVICE OR ENABLE_OPENSSL) + target_link_libraries(core PRIVATE httplib::httplib) +endif() if (ENABLE_WEB_SERVICE) target_compile_definitions(core PUBLIC ENABLE_WEB_SERVICE) diff --git a/src/core/hle/service/bcat/news/builtin_news.cpp b/src/core/hle/service/bcat/news/builtin_news.cpp index 440a5d1f51..27ab301fca 100644 --- a/src/core/hle/service/bcat/news/builtin_news.cpp +++ b/src/core/hle/service/bcat/news/builtin_news.cpp @@ -13,7 +13,6 @@ #include #include #include -#include #include #ifdef CPPHTTPLIB_OPENSSL_SUPPORT