From fb28b931cc2ad4fdae2ab19f3a1e3f8bf5675da2 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sat, 16 Nov 2019 18:56:34 +0700 Subject: [PATCH] Use static OpenSSL libs on macOS. --- cmake/OpenSSL.cmake | 2 ++ 1 file changed, 2 insertions(+) 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)