cmake: use crypt32.lib when building with OpenSSL on windows

Reviewed-by: Peter Wu
Closes #1149
Fixes #1147
This commit is contained in:
Kyselgov E.N 2016-11-29 14:19:54 +02:00 committed by Daniel Stenberg
parent e53f0736c4
commit 1b711ca107
1 changed files with 2 additions and 0 deletions

View File

@ -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)