1
1
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- # SPDX-License-Identifier: Apache-2.0.
2
+ # SPDX-License-Identifier: Apache-2.0
3
3
#
4
4
5
5
cmake_minimum_required (VERSION 3.12 FATAL_ERROR )
@@ -20,17 +20,46 @@ else ()
20
20
message (STATUS "Building with 1.10 CMake scripts." )
21
21
string (CONCAT DESCRIPTION_STRING "The AWS SDK for C++ provides a modern C++ (standard version C++11 or later) "
22
22
"interface for Amazon Web Services (AWS)." )
23
+
24
+ if (NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES )
25
+ message (STATUS "Setting build type to 'RelWithDebInfo' as none was specified." )
26
+ set (CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE
27
+ STRING "Choose the type of build." FORCE )
28
+ # cmake-gui helper
29
+ set_property (CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "Debug" "Release" "MinSizeRel" "RelWithDebInfo" )
30
+ endif ()
31
+
32
+ list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR} /cmake" )
33
+ include (sdk_versioning )
34
+ obtain_project_version (SDK_PROJECT_VERSION )
35
+
23
36
project ("aws-cpp-sdk"
24
37
LANGUAGES CXX
25
- VERSION 1.10.0
38
+ VERSION ${SDK_PROJECT_VERSION}
26
39
DESCRIPTION ${DESCRIPTION_STRING}
27
40
HOMEPAGE_URL "https://docs.aws.amazon.com/sdk-for-cpp"
28
41
)
29
42
set (CMAKE_CXX_STANDARD 11 )
30
43
set (CMAKE_CXX_EXTENSIONS OFF )
31
44
set (CMAKE_CXX_STANDARD_REQUIRED ON )
32
45
33
- message (STATUS "Building ${PROJECT_NAME} ${PROJECT_VERSION} " )
46
+ message (STATUS "Building ${PROJECT_NAME} ${CMAKE_PROJECT_VERSION} " )
47
+
48
+
49
+ message (WARNING "Anything below this warning is a TODO not yet implemented." )
50
+
51
+ message (STATUS "Detecting toolchain and external dependencies." )
52
+ message (STATUS "Prepare CRT dependency." )
53
+ message (STATUS "Setting up core library." )
54
+ message (STATUS "Building core library." )
55
+ message (STATUS "Building core library tests." )
56
+ message (STATUS "Add support for static analysis." )
57
+ message (STATUS "Building client libraries." )
58
+ message (STATUS "Setting up tests." )
59
+ message (STATUS "Setting up installation." )
60
+ message (STATUS "Setting up packaging. " )
61
+ message (STATUS "Setting up docs." )
62
+ message (STATUS "Add support support for SDK flags." )
63
+ message (STATUS "Add previously available options." )
34
64
35
- message (WARNING "This builds nothing yet." )
36
65
endif ()
0 commit comments