]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
cmake: Fix for schannel support
authorYonggang Luo <luoyonggang@gmail.com>
Thu, 14 Jul 2016 18:16:18 +0000 (02:16 +0800)
committerJay Satiro <raysatiro@yahoo.com>
Thu, 28 Jul 2016 07:36:13 +0000 (03:36 -0400)
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
CMakeLists.txt

index 58b145170cb595c642f2f2715802d5533dcf9484..7f7c4d6da73114c08df732e391a9ca37e6a45fd3 100644 (file)
@@ -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()