From c93fd70498b8a9c30a5711304affb7e87ecba62b Mon Sep 17 00:00:00 2001 From: lizzie Date: Thu, 4 Jun 2026 01:12:03 +0000 Subject: [PATCH] [cmake] fix OpenSSL not using when applicable because it tries to use the system one instead of being explicitly linked Signed-off-by: lizzie --- src/common/CMakeLists.txt | 2 +- src/core/CMakeLists.txt | 2 ++ 2 files changed, 3 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..0dc5ec0409 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -1215,6 +1215,8 @@ else() endif() target_link_libraries(core PRIVATE + OpenSSL::SSL + OpenSSL::crypto fmt::fmt nlohmann_json::nlohmann_json RenderDoc::API