From 7c7a69d31b4ff5f8b54153a6898bc6027c878052 Mon Sep 17 00:00:00 2001 From: Dilshod Mukhtarov Date: Tue, 10 Sep 2024 09:00:01 +0400 Subject: [PATCH] Fix build with static libcurl and openssl When linking against libcurl as a static library, which itself depends on static OpenSSL libraries, the build fails if libcmlibarchive.a is linked after libcurl and libssl. --- Source/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index c4cd101eb3..0fc3d49ddb 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -810,7 +810,6 @@ target_link_libraries( PUBLIC cmstd cmsys - CURL::libcurl EXPAT::EXPAT JsonCpp::JsonCpp $ @@ -818,6 +817,7 @@ target_link_libraries( LibRHash::LibRHash LibUV::LibUV Threads::Threads + CURL::libcurl ZLIB::ZLIB llpkgc::llpkgc ) -- GitLab