aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYonggang Luo <luoyonggang@gmail.com>2016-07-15 02:16:18 +0800
committerJay Satiro <raysatiro@yahoo.com>2016-07-28 03:36:13 -0400
commit2bbed9c4f0d2c192cd3b3b61fd6a1c21911936c3 (patch)
tree3d127e5d1a0e567b460828471fc48e56364b6345
parentcb9ba5cf8dfca61d8ce96086330ccde967c2d418 (diff)
cmake: Fix for schannel support
The check_library_exists_concat do not check crypt32 library properly. So include it directly. Bug: https://github.com/curl/curl/pull/917 Reported-by: Yonggang Luo Bug: https://github.com/curl/curl/issues/935 Reported-by: Alain Danteny
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 58b145170..7f7c4d6da 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -570,7 +570,7 @@ if(NOT UNIX)
if(HAVE_SCHANNEL_H)
set(USE_SCHANNEL ON)
set(SSL_ENABLED ON)
- check_library_exists_concat("crypt32" CertFreeCertificateContext HAVE_LIBCRYPT32)
+ set(CURL_LIBS ${CURL_LIBS} "crypt32")
endif()
endif()
endif()