diff --git a/external/aws-sdk-cpp.cmake b/external/aws-sdk-cpp.cmake index 1ba641db..fd859f27 100644 --- a/external/aws-sdk-cpp.cmake +++ b/external/aws-sdk-cpp.cmake @@ -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}")