diff options
author | Alex Overchenko <aleksandr9809@gmail.com> | 2024-03-24 06:37:11 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-03-25 19:31:30 (GMT) |
commit | a76aad6ca64be5d2af71ce0c4470769a088fd68c (patch) | |
tree | 444698b9ff6b6602c22e26f0bc24d220f7772f82 | |
parent | 6cddfdf974ed8d60c1d8fe5f082e83097dad2209 (diff) | |
download | CMake-a76aad6ca64be5d2af71ce0c4470769a088fd68c.zip CMake-a76aad6ca64be5d2af71ce0c4470769a088fd68c.tar.gz CMake-a76aad6ca64be5d2af71ce0c4470769a088fd68c.tar.bz2 |
FindCURL: Add support for finding static `libcurl_a.lib` on Windows
Fixes: #25810
-rw-r--r-- | Modules/FindCURL.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/FindCURL.cmake b/Modules/FindCURL.cmake index 5e5f1f8..ee242bb 100644 --- a/Modules/FindCURL.cmake +++ b/Modules/FindCURL.cmake @@ -117,6 +117,8 @@ if(NOT CURL_LIBRARY) curllib_static # Windows older "Win32 - MSVC" prebuilts (libcurl.lib, e.g. libcurl-7.15.5-win32-msvc.zip): libcurl + # Some Windows prebuilt versions distribute `libcurl_a.lib` instead of `libcurl.lib` + libcurl_a NAMES_PER_DIR HINTS ${PC_CURL_LIBRARY_DIRS} ) |