From: ALittleDruid <297957399@qq.com> Date: Sat, 28 Jan 2023 12:23:25 +0000 (+0800) Subject: cmake: fix Windows check for CryptAcquireContext X-Git-Tag: curl-7_88_1~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f5a88f2978e4a8d6fe15de39497f009a81a52bf6;p=thirdparty%2Fcurl.git cmake: fix Windows check for CryptAcquireContext Check for CryptAcquireContext in windows.h and wincrypt.h only, since otherwise this check may fail due to third party headers not found. Closes https://github.com/curl/curl/pull/10353 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index cf40054f91..eb998fb0f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1277,7 +1277,7 @@ if(WIN32) # Check if crypto functions in wincrypt.h are actually available if(HAVE_WINCRYPT_H) - check_symbol_exists(CryptAcquireContext "${CURL_INCLUDES}" USE_WINCRYPT) + check_symbol_exists(CryptAcquireContext "windows.h;wincrypt.h" USE_WINCRYPT) endif() if(USE_WINCRYPT) set(USE_WIN32_CRYPTO ON)