From f814193d5e7c80f8720c52d8cb126d0d374db914 Mon Sep 17 00:00:00 2001 From: XMRig Date: Mon, 17 Sep 2018 01:43:44 +0300 Subject: [PATCH] Fix gcc build with OpenSSL 1.1.1 --- cmake/OpenSSL.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/OpenSSL.cmake b/cmake/OpenSSL.cmake index 154a8278..d0c0d164 100644 --- a/cmake/OpenSSL.cmake +++ b/cmake/OpenSSL.cmake @@ -11,6 +11,10 @@ if (WITH_TLS) else() message(FATAL_ERROR "OpenSSL NOT found: use `-DWITH_TLS=OFF` to build without TLS support") endif() + + if (WIN32) + set(EXTRA_LIBS ${EXTRA_LIBS} Crypt32) + endif() else() set(TLS_SOURCES "") set(OPENSSL_LIBRARIES "")