Browse Source

curl: Restore configuration checks on UNIX platforms

In commit 0112a49bfa (curl: Set build options the way we need for CMake,
2025-06-04, v4.1.0-rc1~54^2) we enabled `_CURL_PREFILL` on many UNIX
platforms.  However, curl's default only enables prefill on Windows.

Fixes: #27045
Brad King 8 months ago
parent
commit
759c6fd6a1
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Utilities/cmcurl/CMakeLists.txt

+ 3 - 3
Utilities/cmcurl/CMakeLists.txt

@@ -1,8 +1,8 @@
 # Set curl options as needed for CMake build
-if(CMAKE_SYSTEM_NAME MATCHES "^(AIX|SunOS)$")
-  set(_CURL_PREFILL OFF)
-else()
+if(WIN32)
   set(_CURL_PREFILL ON)
+else()
+  set(_CURL_PREFILL OFF)
 endif()
 set(BUILD_CURL_EXE OFF CACHE INTERNAL "No curl exe")
 set(BUILD_DASHBOARD_REPORTS OFF CACHE INTERNAL "No curl dashboard reports")