mirror of
https://github.com/curl/curl.git
synced 2025-09-21 03:22:41 +03:00
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
This commit is contained in:
parent
cb9ba5cf8d
commit
2bbed9c4f0
|
@ -570,7 +570,7 @@ if(NOT UNIX)
|
||||||
if(HAVE_SCHANNEL_H)
|
if(HAVE_SCHANNEL_H)
|
||||||
set(USE_SCHANNEL ON)
|
set(USE_SCHANNEL ON)
|
||||||
set(SSL_ENABLED ON)
|
set(SSL_ENABLED ON)
|
||||||
check_library_exists_concat("crypt32" CertFreeCertificateContext HAVE_LIBCRYPT32)
|
set(CURL_LIBS ${CURL_LIBS} "crypt32")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user