summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-07-24 19:37:12 (GMT)
committerBrad King <brad.king@kitware.com>2024-07-25 15:05:26 (GMT)
commitc1a62dd104687f8824787be2d8504d0a6f4be1d9 (patch)
tree6bad9e0da6ccc053d0542f54f042132ec786f76b /Utilities
parent54c5367320267d5659e5835a87aab2a6b5eb083f (diff)
downloadCMake-c1a62dd104687f8824787be2d8504d0a6f4be1d9.zip
CMake-c1a62dd104687f8824787be2d8504d0a6f4be1d9.tar.gz
CMake-c1a62dd104687f8824787be2d8504d0a6f4be1d9.tar.bz2
curl: Set build options the way we need for CMake
Set options added by the update to curl 8.9.0.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcurl/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt
index cf81524..fd5fd49 100644
--- a/Utilities/cmcurl/CMakeLists.txt
+++ b/Utilities/cmcurl/CMakeLists.txt
@@ -6,6 +6,7 @@ set(BUILD_SHARED_LIBS OFF)
set(BUILD_STATIC_LIBS ON)
set(BUILD_STATIC_CURL OFF)
set(CURL_USE_BEARSSL OFF)
+set(CURL_USE_GSASL OFF)
set(CURL_USE_GSSAPI OFF)
set(CURL_USE_LIBPSL OFF)
set(CURL_USE_LIBSSH2 OFF)
@@ -88,7 +89,7 @@ set(HAVE_STDATOMIC_H 0)
set(HAVE_STRCASECMP 0) # we do not vendor the code that uses this
set(HAVE_WIN32_WINNT 0) # we do not need this info
set(HTTP_ONLY OFF CACHE INTERNAL "Curl is not http-only")
-set(PICKY_COMPILER OFF CACHE INTERNAL "Enable picky compiler options")
+set(PICKY_COMPILER OFF)
set(SHARE_LIB_OBJECT OFF)
set(USE_ECH OFF)
set(USE_HTTPSRR OFF)
@@ -276,9 +277,9 @@ if(0) # This code not needed for building within CMake.
cmake_dependent_option(ENABLE_THREADED_RESOLVER "Set to ON to enable threaded DNS lookup"
ON "NOT ENABLE_ARES"
OFF)
-endif()
include(PickyWarnings)
+endif()
option(ENABLE_DEBUG "Set to ON to enable curl debug features" OFF)
option(ENABLE_CURLDEBUG "Set to ON to build with TrackMemory feature enabled" ${ENABLE_DEBUG})
@@ -1105,6 +1106,7 @@ if(USE_LIBIDN2)
set(LIBIDN2_LINK_LIBRARIES "idn2")
check_include_file_concat("idn2.h" HAVE_IDN2_H)
endif()
+ if(0) # This code not needed for building within CMake.
if(NOT HAVE_LIBIDN2 OR NOT HAVE_IDN2_H)
find_package(PkgConfig QUIET)
pkg_check_modules(LIBIDN2 "libidn2")
@@ -1114,6 +1116,7 @@ if(USE_LIBIDN2)
set(HAVE_IDN2_H ON)
endif()
endif()
+ endif()
if(HAVE_LIBIDN2 AND HAVE_IDN2_H)
set(CURL_LIBS "${LIBIDN2_LINK_LIBRARIES};${CURL_LIBS}")
set(LIBCURL_PC_REQUIRES_PRIVATE "libidn2;${LIBCURL_PC_REQUIRES_PRIVATE}")