aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/aws-sdk-cpp/fix_find_curl.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/aws-sdk-cpp/fix_find_curl.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/aws-sdk-cpp/fix_find_curl.patch')
-rw-r--r--vcpkg/ports/aws-sdk-cpp/fix_find_curl.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/vcpkg/ports/aws-sdk-cpp/fix_find_curl.patch b/vcpkg/ports/aws-sdk-cpp/fix_find_curl.patch
new file mode 100644
index 0000000..b335052
--- /dev/null
+++ b/vcpkg/ports/aws-sdk-cpp/fix_find_curl.patch
@@ -0,0 +1,31 @@
+diff --git a/cmake/external_dependencies.cmake b/cmake/external_dependencies.cmake
+index acf16c0..3a49fb4 100644
+--- a/cmake/external_dependencies.cmake
++++ b/cmake/external_dependencies.cmake
+@@ -80,23 +80,12 @@ if(NOT NO_HTTP_CLIENT AND NOT USE_CRT_HTTP_CLIENT)
+ set(BUILD_CURL 1)
+ message(STATUS " Building Curl as part of AWS SDK")
+ else()
+- include(FindCURL)
++ find_package(CURL REQUIRED)
+ if(NOT CURL_FOUND)
+ message(FATAL_ERROR "Could not find curl")
++ else()
++ set(CURL_LIBRARIES CURL::libcurl)
+ endif()
+-
+- # When built from source using cmake, curl does not include
+- # CURL_INCLUDE_DIRS or CURL_INCLUDE_DIRS so we need to use
+- # find_package to fix it
+- if ("${CURL_INCLUDE_DIRS}" STREQUAL "" AND "${CURL_LIBRARIES}" STREQUAL "")
+- message(STATUS "Could not find curl include or library path, falling back to find with config.")
+- find_package(CURL)
+- set(CURL_LIBRARIES CURL::libcurl)
+- else ()
+- message(STATUS " Curl include directory: ${CURL_INCLUDE_DIRS}")
+- List(APPEND EXTERNAL_DEPS_INCLUDE_DIRS ${CURL_INCLUDE_DIRS})
+- set(CLIENT_LIBS ${CURL_LIBRARIES})
+- endif ()
+ set(CLIENT_LIBS_ABSTRACT_NAME curl)
+ message(STATUS " Curl target link: ${CURL_LIBRARIES}")
+ endif()