Skip to content

Commit

Permalink
Use the CRT HTTP client with the AWS SDK instead of libcurl
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulat committed Jan 21, 2024
1 parent 1133548 commit 1516cdd
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions external/aws-sdk-cpp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@ cmake_minimum_required(VERSION 3.20)
set(PROJECT_NAME scwx-aws-sdk-cpp)

set(AWS_SDK_WARNINGS_ARE_ERRORS OFF)
set(BUILD_ONLY "s3")
set(BUILD_SHARED_LIBS OFF)
set(CPP_STANDARD 17)
set(ENABLE_TESTING OFF)
set(ENABLE_UNITY_BUILD ON)
set(MINIMIZE_SIZE OFF)
set(BUILD_ONLY "s3")
set(BUILD_SHARED_LIBS OFF)
set(CPP_STANDARD 17)
set(ENABLE_TESTING OFF)
set(ENABLE_UNITY_BUILD ON)
set(MINIMIZE_SIZE OFF)
set(USE_CRT_HTTP_CLIENT ON)

# Some variables also need set in the cache... set them all!
set(AWS_SDK_WARNINGS_ARE_ERRORS OFF CACHE BOOL "Compiler warning is treated as an error. Try turning this off when observing errors on a new or uncommon compiler")
set(BUILD_ONLY "s3" CACHE STRING "A semi-colon delimited list of the projects to build")
set(BUILD_SHARED_LIBS OFF CACHE BOOL "If enabled, all aws sdk libraries will be build as shared objects; otherwise all Aws libraries will be built as static objects")
set(CPP_STANDARD "17" CACHE STRING "Flag to upgrade the C++ standard used. The default is 11. The minimum is 11.")
set(ENABLE_TESTING OFF CACHE BOOL "Flag to enable/disable building unit and integration tests")
set(ENABLE_UNITY_BUILD ON CACHE BOOL "If enabled, the SDK will be built using a single unified .cpp file for each service library. Reduces the size of static library binaries on Windows and Linux")
set(MINIMIZE_SIZE OFF CACHE BOOL "If enabled, the SDK will be built via a unity aggregation process that results in smaller static libraries; additionally, release binaries will favor size optimizations over speed")
set(BUILD_ONLY "s3" CACHE STRING "A semi-colon delimited list of the projects to build")
set(BUILD_SHARED_LIBS OFF CACHE BOOL "If enabled, all aws sdk libraries will be build as shared objects; otherwise all Aws libraries will be built as static objects")
set(CPP_STANDARD "17" CACHE STRING "Flag to upgrade the C++ standard used. The default is 11. The minimum is 11.")
set(ENABLE_TESTING OFF CACHE BOOL "Flag to enable/disable building unit and integration tests")
set(ENABLE_UNITY_BUILD ON CACHE BOOL "If enabled, the SDK will be built using a single unified .cpp file for each service library. Reduces the size of static library binaries on Windows and Linux")
set(MINIMIZE_SIZE OFF CACHE BOOL "If enabled, the SDK will be built via a unity aggregation process that results in smaller static libraries; additionally, release binaries will favor size optimizations over speed")
set(USE_CRT_HTTP_CLIENT ON CACHE BOOL "If enabled, the common runtime HTTP client will be used, and the legacy systems such as WinHttp and libcurl will not be built or included")

# Save off ${CMAKE_CXX_FLAGS} before modifying compiler settings
set(CMAKE_CXX_FLAGS_PREV "${CMAKE_CXX_FLAGS}")
Expand Down

0 comments on commit 1516cdd

Please sign in to comment.