cmake: use static OpenSSL libraries on linux (#3162)

This commit is contained in:
Tyler Wilding
2023-11-05 16:30:25 -05:00
committed by GitHub
parent f44f4dbe49
commit c415d28270
+3
View File
@@ -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)