File tree Expand file tree Collapse file tree 6 files changed +18
-10
lines changed Expand file tree Collapse file tree 6 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -70,10 +70,13 @@ option(ENABLE_ADDRESS_SANITIZER "Flags to enable/disable Address Sanitizer for g
70
70
option (BYPASS_DEFAULT_PROXY "Bypass the machine's default proxy settings when using IXmlHttpRequest2" ON )
71
71
option (BUILD_DEPS "Build third-party dependencies" ON )
72
72
73
-
74
73
set (BUILD_ONLY "" CACHE STRING "A semi-colon delimited list of the projects to build" )
75
74
set (CPP_STANDARD "11" CACHE STRING "Flag to upgrade the C++ standard used. The default is 11. The minimum is 11." )
76
75
76
+ if (NOT CMAKE_BUILD_TYPE )
77
+ set (CMAKE_BUILD_TYPE Release)
78
+ endif ()
79
+
77
80
# backwards compatibility with old command line params
78
81
if ("${STATIC_LINKING} " STREQUAL "1" )
79
82
set (BUILD_SHARED_LIBS OFF )
@@ -106,6 +109,11 @@ endif()
106
109
107
110
include (initialize_project_version)
108
111
112
+ if (BUILD_SHARED_LIBS OR FORCE_SHARED_CRT)
113
+ set (STATIC_CRT OFF )
114
+ else ()
115
+ set (STATIC_CRT ON )
116
+ endif ()
109
117
110
118
# build third-party targets
111
119
if (BUILD_DEPS)
@@ -163,6 +171,7 @@ if (BUILD_DEPS)
163
171
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
164
172
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
165
173
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
174
+ -DSTATIC_CRT=${STATIC_CRT}
166
175
-DCMAKE_INSTALL_PREFIX=${AWS_DEPS_INSTALL_DIR}
167
176
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=${CMAKE_CURRENT_BINARY_DIR} /bin
168
177
${CMAKE_CURRENT_SOURCE_DIR} /third-party
Original file line number Diff line number Diff line change @@ -52,10 +52,10 @@ You can use the following variations to create your build directory:
52
52
* For Visual Studio:
53
53
` msbuild ALL_BUILD.vcxproj `
54
54
55
- ##### To create a ** release build** , do one of the following:
55
+ ##### The default build type is Release, to create a ** Debug build** , do one of the following:
56
56
* For Auto Make build systems:
57
57
```
58
- cmake -DCMAKE_BUILD_TYPE=Release <path-to-root-of-this-source-code>
58
+ cmake -DCMAKE_BUILD_TYPE=Debug <path-to-root-of-this-source-code>
59
59
make
60
60
sudo make install
61
61
```
Original file line number Diff line number Diff line change @@ -8,26 +8,22 @@ project(AWSSDK_DEPS)
8
8
9
9
list (APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR} /cmake" )
10
10
11
- if (NOT CMAKE_BUILD_TYPE )
12
- set (CMAKE_BUILD_TYPE Release)
13
- endif ()
14
-
15
11
include (ExternalProject)
16
12
17
13
set (AWS_DEPS_INSTALL_DIR "${CMAKE_INSTALL_PREFIX} " CACHE PATH "Dependencies install directory." )
18
14
set (AWS_DEPS_BUILD_DIR "${CMAKE_BINARY_DIR} /build" CACHE PATH "Dependencies build directory." )
19
15
set (AWS_DEPS_DOWNLOAD_DIR "${AWS_DEPS_BUILD_DIR} /downloads" CACHE PATH "Dependencies download directory." )
20
16
21
17
set (AWS_C_COMMON_URL "https://github.com/awslabs/aws-c-common.git" )
22
- set (AWS_C_COMMON_TAG "f5383755e934745811d777a8e6c6866791b4302e " )
18
+ set (AWS_C_COMMON_TAG "ac02e17 " )
23
19
include (BuildAwsCCommon)
24
20
25
21
set (AWS_CHECKSUMS_URL "https://github.com/awslabs/aws-checksums.git" )
26
- set (AWS_CHECKSUMS_TAG "v0.1.2 " )
22
+ set (AWS_CHECKSUMS_TAG "41dc36d " )
27
23
include (BuildAwsChecksums)
28
24
29
25
set (AWS_EVENT_STREAM_URL "https://github.com/awslabs/aws-c-event-stream.git" )
30
- set (AWS_EVENT_STREAM_TAG "v0.1.1 " )
26
+ set (AWS_EVENT_STREAM_TAG "97ab2e5 " )
31
27
include (BuildAwsEventStream)
32
28
33
29
add_dependencies (AwsCEventStream AwsCCommon AwsChecksums)
Original file line number Diff line number Diff line change 46
46
-DCMAKE_INSTALL_PREFIX=${AWS_DEPS_INSTALL_DIR}
47
47
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
48
48
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
49
+ -DSTATIC_CRT=${STATIC_CRT}
49
50
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
50
51
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
51
52
)
Original file line number Diff line number Diff line change 45
45
-DCMAKE_INSTALL_PREFIX=${AWS_DEPS_INSTALL_DIR}
46
46
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
47
47
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
48
+ -DSTATIC_CRT=${STATIC_CRT}
48
49
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
49
50
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
50
51
)
Original file line number Diff line number Diff line change 53
53
-DCMAKE_PREFIX_PATH=${AWS_DEPS_INSTALL_DIR}
54
54
-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
55
55
-DBUILD_SHARED_LIBS=${BUILD_SHARED_LIBS}
56
+ -DSTATIC_CRT=${STATIC_CRT}
56
57
-DCMAKE_INSTALL_RPATH=${DEPS_RPATH}
57
58
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
58
59
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
You can’t perform that action at this time.
0 commit comments