From ce9c7c196d68601db2ff607216e6d52a8bad676a Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 4 Jun 2026 19:39:09 +0200 Subject: [PATCH] [cmake] fix OpenSSL not using when applicable because it tries to use the system one instead of being explicitly linked (#4053) should fix hiccups with self-built OpenSSL Signed-off-by: lizzie Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4053 Reviewed-by: crueter Reviewed-by: MaranBr --- src/common/CMakeLists.txt | 2 +- src/core/CMakeLists.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index b462107bcd..786effa6bd 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -235,7 +235,7 @@ if (BOOST_NO_HEADERS) else() target_link_libraries(common PUBLIC Boost::headers) endif() - +target_link_libraries(common PRIVATE OpenSSL::SSL) target_link_libraries(common PUBLIC Boost::filesystem Boost::context httplib::httplib nlohmann_json::nlohmann_json) if (lz4_ADDED) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index 9d774ca0a1..04d63c18b8 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1215,6 +1215,7 @@ else() endif() target_link_libraries(core PRIVATE + OpenSSL::SSL fmt::fmt nlohmann_json::nlohmann_json RenderDoc::API