Browse Source

[cmake, core/hle] fix no-OpenSSL builds with BCAT news using unguarded httplib

Signed-off-by: lizzie <lizzie@eden-emu.dev>
pull/3326/head
lizzie 3 weeks ago
committed by crueter
parent
commit
4f99f17aae
  1. 7
      src/core/CMakeLists.txt
  2. 1
      src/core/hle/service/bcat/news/builtin_news.cpp

7
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)

1
src/core/hle/service/bcat/news/builtin_news.cpp

@ -13,7 +13,6 @@
#include <boost/regex.hpp>
#include <boost/regex/v5/regex_replace.hpp>
#include <fmt/format.h>
#include <httplib.h>
#include <nlohmann/json.hpp>
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT

Loading…
Cancel
Save