aboutsummaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorKyselgov E.N <kyselgov@gmail.com>2016-11-29 14:19:54 +0200
committerDaniel Stenberg <daniel@haxx.se>2016-12-27 22:20:19 +0100
commit1b711ca107730179d6b588863292347a93038e3b (patch)
tree784b1d7027e44209f139f129fbd63d1f70a486fe /CMakeLists.txt
parente53f0736c403aa973e6937ba19d83f07922ac9cb (diff)
cmake: use crypt32.lib when building with OpenSSL on windows
Reviewed-by: Peter Wu Closes #1149 Fixes #1147
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
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)