From 1b711ca107730179d6b588863292347a93038e3b Mon Sep 17 00:00:00 2001 From: "Kyselgov E.N" Date: Tue, 29 Nov 2016 14:19:54 +0200 Subject: [PATCH] cmake: use crypt32.lib when building with OpenSSL on windows Reviewed-by: Peter Wu Closes #1149 Fixes #1147 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a6a73689d..31a0d41e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -590,6 +590,8 @@ if(NOT UNIX) set(CURL_LIBS ${CURL_LIBS} "crypt32") endif() endif() + elseif(USE_OPENSSL) + set(CURL_LIBS ${CURL_LIBS} "crypt32") endif() endif(NOT UNIX)