From bab4c1c99f374b550674f0c448cf9dfa91c3f9a9 Mon Sep 17 00:00:00 2001 From: Craig Edwards Date: Fri, 18 Oct 2024 01:58:22 +0000 Subject: [PATCH] oops, dont force linking openssl static when we arent doing static build --- library/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index 36dac3829c..d631d61f31 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -169,7 +169,9 @@ if(APPLE) find_package(OpenSSL REQUIRED) else() if(MINGW OR NOT WIN32) - set(OPENSSL_USE_STATIC_LIBS TRUE) + if(NOT BUILD_SHARED_LIBS) + set(OPENSSL_USE_STATIC_LIBS TRUE) + endif() find_package(OpenSSL REQUIRED) endif() endif()