forked from SlavaMelanko/conan-aws-sdk-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatch-cmakelists.patch
More file actions
34 lines (30 loc) · 1.46 KB
/
patch-cmakelists.patch
File metadata and controls
34 lines (30 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--- aws-sdk-cpp-1.7.212.orig/CMakeLists.txt 2019-10-27 22:21:30.570629464 -0800
+++ aws-sdk-cpp-1.7.212/CMakeLists.txt 2019-10-27 22:22:29.358469113 -0800
@@ -30,6 +30,9 @@
cmake_policy(SET CMP0057 NEW) # support IN_LIST
endif()
+# build the sdk targets
+project("aws-cpp-sdk-all" VERSION "${PROJECT_VERSION}" LANGUAGES CXX)
+
# 3.0 or higher is strongly suggested; build settings (target_compile_options/etc...) sometimes do not get propagated properly under certain conditions prior to this version
# Making this a hard requirement is potentially disruptive to existing customers who aren't affected by the bad behavior though, so just warn for now
if(CMAKE_MAJOR_VERSION LESS 3)
@@ -215,6 +218,10 @@
-DSTATIC_CRT=${STATIC_CRT}
-DCMAKE_INSTALL_PREFIX=${AWS_DEPS_INSTALL_DIR}
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=${CMAKE_CURRENT_BINARY_DIR}/bin
+ -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
+ -DCMAKE_C_FLAGS=${CMAKE_C_FLAGS}
+ -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
+ -DCMAKE_SYSTEM_NAME=${CMAKE_SYSTEM_NAME}
${GEN_PLATFORM_ARG}
${CMAKE_CURRENT_SOURCE_DIR}/third-party
WORKING_DIRECTORY ${AWS_DEPS_BUILD_DIR}
@@ -234,9 +238,6 @@
list(APPEND CMAKE_PREFIX_PATH "${AWS_DEPS_INSTALL_DIR}")
endif()
-# build the sdk targets
-project("aws-cpp-sdk-all" VERSION "${PROJECT_VERSION}" LANGUAGES CXX)
-
# http client, encryption, zlib
include(external_dependencies)