]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: check USE_WINDOWS_SSPI when adding secur32 to CURL_LIBS
authorJoel Depooter <joel.depooter@safe.com>
Tue, 24 Jun 2025 01:14:24 +0000 (18:14 -0700)
committerViktor Szakats <commit@vsz.me>
Tue, 24 Jun 2025 07:57:42 +0000 (09:57 +0200)
commitc153d9eadf41c894f71ece3dd4355c1990e08b97
tree0b387750536624e5f676b40bae17923874e0babb
parent8c9a9b87c20fd9184e0a6c7b5e2c42d727f0db62
cmake: check USE_WINDOWS_SSPI when adding secur32 to CURL_LIBS

Instead of CURL_WINDOWS_SSPI.

When running CMake on Windows with no additional parameters (ie default
build configuration), the generated project files do not include the
`secur32.lib` library in the linker settings. This is because
the relevant check was looking at `CURL_WINDOWS_SSPI` instead of
`USE_WINDOWS_SSPI`.

`USE_WINDOWS_SSPI` is enabled when building with SChannel (the default
on Windows), or if `CURL_WINDOWS_SSPI` is specified on the command line.

Follow-up to 0d71b18153c8edb996738f8a362373fc72d0013b #17413

Closes #17728
CMakeLists.txt