diff Aws/AwsStaticConfiguration.cmake @ 57:ba1be668e475

fix initialization of the aws static library
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Jun 2021 16:55:24 +0200
parents b922ae86bbe1
children c9356e42af99
line wrap: on
line diff
--- a/Aws/AwsStaticConfiguration.cmake	Tue Jun 22 15:00:36 2021 +0200
+++ b/Aws/AwsStaticConfiguration.cmake	Tue Jun 22 16:55:24 2021 +0200
@@ -137,6 +137,7 @@
   ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/external/cjson/
   ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/external/tinyxml2/
   ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/http/
+  ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/http/curl/
   ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/http/standard/
   ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/internal/
   ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/monitoring/
@@ -145,6 +146,7 @@
   ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/utils/base64/
   ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/utils/crypto/
   ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/utils/crypto/factory/
+  ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/utils/crypto/openssl/
   ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/utils/event/
   ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/utils/json/
   ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/utils/logging/
@@ -158,8 +160,10 @@
 
 
 add_definitions(
-  -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD_ATTR
+  -DAWS_AFFINITY_METHOD=AWS_AFFINITY_METHOD_PTHREAD
   -DBYO_CRYPTO  # To have "aws_tls_server_ctx_new()" defined
+  -DENABLE_OPENSSL_ENCRYPTION=1
+  -DENABLE_CURL_CLIENT=1
   )
 
 list(APPEND AWS_SOURCES_SUBDIRS