From c415d282704163882625ccec5a30ac299b413bac Mon Sep 17 00:00:00 2001 From: Tyler Wilding Date: Sun, 5 Nov 2023 16:30:25 -0500 Subject: [PATCH] cmake: use static OpenSSL libraries on linux (#3162) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a13e6c092a..791677828c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -195,6 +195,9 @@ if(WIN32) elseif(APPLE) set(CURL_USE_SECTRANSP ON) # native macOS SSL support else() + if(STATICALLY_LINK) + set(OPENSSL_USE_STATIC_LIBS TRUE) + endif() set(CURL_USE_OPENSSL ON) # not native, but seems to be the best choice for linux endif() include_directories(third-party/curl/include)