diff Aws/AwsStaticConfiguration.cmake @ 142:c6edc5caca7a

cont
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 02 Mar 2024 11:26:20 +0100
parents a360eb28089d
children 3c7e0374f28e
line wrap: on
line diff
--- a/Aws/AwsStaticConfiguration.cmake	Sat Mar 02 11:10:50 2024 +0100
+++ b/Aws/AwsStaticConfiguration.cmake	Sat Mar 02 11:26:20 2024 +0100
@@ -166,8 +166,6 @@
   ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/internal/
   ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/monitoring/
   ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/net/
-  ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/platform/linux-shared/
-  # ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/platform/windows/
   ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/smithy/tracing/
   ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/
   ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/utils/base64/
@@ -196,14 +194,22 @@
   -DENABLE_CURL_CLIENT=1
   )
 
-list(APPEND AWS_SOURCES_SUBDIRS
-  #${AWS_C_CAL_SOURCES_DIR}/source/unix/
-  #${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/net/linux-shared/
-  ${AWS_C_COMMON_SOURCES_DIR}/source/posix/
-  ${AWS_C_IO_SOURCES_DIR}/source/linux/
-  ${AWS_C_IO_SOURCES_DIR}/source/posix/
-  ${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/platform/linux-shared/
-  )
+if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
+  list(APPEND AWS_SOURCES_SUBDIRS
+    ${AWS_C_COMMON_SOURCES_DIR}/source/windows/
+    ${AWS_C_IO_SOURCES_DIR}/source/windows/
+    ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/platform/windows/
+    )
+else()
+  list(APPEND AWS_SOURCES_SUBDIRS
+    #${AWS_C_CAL_SOURCES_DIR}/source/unix/
+    #${AWS_SDK_CPP_SOURCES_DIR}/aws-cpp-sdk-core/source/net/linux-shared/
+    ${AWS_C_COMMON_SOURCES_DIR}/source/posix/
+    ${AWS_C_IO_SOURCES_DIR}/source/linux/
+    ${AWS_C_IO_SOURCES_DIR}/source/posix/
+    ${AWS_SDK_CPP_SOURCES_DIR}/src/aws-cpp-sdk-core/source/platform/linux-shared/
+    )
+endif()
 
 
 foreach(d ${AWS_SOURCES_SUBDIRS})