diff --git a/cmake/OpenSSL.cmake b/cmake/OpenSSL.cmake index ea46081c..7ff83995 100644 --- a/cmake/OpenSSL.cmake +++ b/cmake/OpenSSL.cmake @@ -6,6 +6,8 @@ if (WITH_TLS) set(OPENSSL_MSVC_STATIC_RT TRUE) set(EXTRA_LIBS ${EXTRA_LIBS} Crypt32) + elseif (APPLE) + set(OPENSSL_USE_STATIC_LIBS TRUE) endif() find_package(OpenSSL)