2023-02-02 04:52:03 +08:00
|
|
|
diff --git a/src/aws-cpp-sdk-core/CMakeLists.txt b/src/aws-cpp-sdk-core/CMakeLists.txt
|
2022-11-22 01:13:49 +08:00
|
|
|
index c44546b0e..b66888362 100644
|
2023-02-02 04:52:03 +08:00
|
|
|
--- a/src/aws-cpp-sdk-core/CMakeLists.txt
|
|
|
|
+++ b/src/aws-cpp-sdk-core/CMakeLists.txt
|
2022-11-22 01:13:49 +08:00
|
|
|
@@ -113,13 +113,8 @@ if(ENABLE_CURL_CLIENT)
|
|
|
|
int main() {
|
|
|
|
CURL* handle = curl_easy_init();
|
|
|
|
return curl_easy_setopt(handle, CURLOPT_PROXY_SSLCERT, \"client.pem\"); }")
|
|
|
|
- if (CMAKE_CROSSCOMPILING)
|
|
|
|
- check_c_source_compiles("${CHECK_CURL_HAS_H2}" CURL_HAS_H2)
|
|
|
|
- check_c_source_compiles("${CHECK_CURL_HAS_TLS_PROXY}" CURL_HAS_TLS_PROXY)
|
|
|
|
- else()
|
|
|
|
- check_c_source_runs("${CHECK_CURL_HAS_H2}" CURL_HAS_H2)
|
|
|
|
- check_c_source_runs("${CHECK_CURL_HAS_TLS_PROXY}" CURL_HAS_TLS_PROXY)
|
|
|
|
- endif()
|
|
|
|
+ set(CURL_HAS_H2 OFF)
|
|
|
|
+ set(CURL_HAS_TLS_PROXY ON)
|
|
|
|
elseif(ENABLE_WINDOWS_CLIENT)
|
|
|
|
# NOTE: HTTP/2 is not supported when using IXML_HTTP_REQUEST_2
|
|
|
|
if(USE_IXML_HTTP_REQUEST_2)
|