1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-15 20:46:37 +08:00

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
This commit is contained in:
Brad King
2025-07-02 09:27:37 -04:00
parent 2e76b79d80
commit 759c6fd6a1

View File

@@ -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")