Browse Source

FindCURL: Add support for finding static `libcurl_a.lib` on Windows

Fixes: #25810
Alex Overchenko 1 year ago
parent
commit
a76aad6ca6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Modules/FindCURL.cmake

+ 2 - 0
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}
   )