Skip to content

Commit aa88772

Browse files
Merge pull request #37 from awslabs/FB-CMakeVersionBump
Improve CMake version check
2 parents 15b535e + 7dc0b51 commit aa88772

File tree

19 files changed

+6
-21
lines changed

19 files changed

+6
-21
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@
1313
# permissions and limitations under the License.
1414
#
1515

16-
# minimum version of cmake that
17-
# (1) supports ExternalProject_Add URL_HASH
18-
# (2) correctly extracts OPENSSL's version number from openssl/opensslv.h in version 1.0.2d
1916
cmake_minimum_required (VERSION 2.8.12)
2017

18+
# 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
19+
# 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
20+
if(CMAKE_MAJOR_VERSION LESS 3)
21+
message(WARNING "Building with CMake 3.0 or higher is strongly suggested; current version is ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}")
22+
endif()
23+
2124
# git is required for Android builds and optional for all other platforms
2225
find_package(Git)
2326

android-unified-tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(android-unified-tests)
32

43
# Headers are included in the source so that they show up in Visual Studio.

aws-cpp-sdk-access-management/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-access-management)
32

43
file(GLOB AWS_ACCESS_MANAGEMENT_HEADERS

aws-cpp-sdk-cloudfront-integration-tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-sqs-cloudfront-tests)
32

43
# Headers are included in the source so that they show up in Visual Studio.

aws-cpp-sdk-cognitoidentity-integration-tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-cognitoidentity-integration-tests)
32

43
# Headers are included in the source so that they show up in Visual Studio.

aws-cpp-sdk-core-tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-core-tests)
32

43
# Headers are included in the source so that they show up in Visual Studio.

aws-cpp-sdk-core/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-core)
32

43
if(GIT_FOUND)

aws-cpp-sdk-dynamodb-integration-tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-dynamodb-integration-tests)
32

43
# Headers are included in the source so that they show up in Visual Studio.

aws-cpp-sdk-identity-management-tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-identity-management-tests)
32

43
# Headers are included in the source so that they show up in Visual Studio.

aws-cpp-sdk-identity-management/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-identity-management)
32

43
file(GLOB AWS_IDENTITY_PROVIDER_HEADERS

aws-cpp-sdk-lambda-integration-tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-lambda-integration-tests)
32

43
# Headers are included in the source so that they show up in Visual Studio.

aws-cpp-sdk-queues/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.6)
21
project(aws-cpp-sdk-queues)
32

43
file(GLOB AWS_QUEUES_HEADERS

aws-cpp-sdk-redshift-integration-tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-redshift-integration-tests)
32

43
# Headers are included in the source so that they show up in Visual Studio.

aws-cpp-sdk-s3-integration-tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-s3-integration-tests)
32

43
# Headers are included in the source so that they show up in Visual Studio.

aws-cpp-sdk-sqs-integration-tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-sqs-integration-tests)
32

43
# Headers are included in the source so that they show up in Visual Studio.

aws-cpp-sdk-transfer-tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-transfer-integration-tests)
32

43
# Headers are included in the source so that they show up in Visual Studio.

aws-cpp-sdk-transfer/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
cmake_minimum_required(VERSION 2.8.12)
21
project(aws-cpp-sdk-transfer)
32

43
file( GLOB TRANSFER_HEADERS "include/aws/transfer/*.h" )

code-generation/generator/src/main/resources/com/amazonaws/util/awsclientgenerator/velocity/cpp/CMakeFile.vm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#set($metadata = $serviceModel.metadata)
2-
cmake_minimum_required(VERSION 2.8.12)
32
project(aws-cpp-sdk-${metadata.projectName})
43

54
#set($projectNameCaps = $metadata.projectName.toUpperCase())

testing-resources/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
# permissions and limitations under the License.
1414
#
1515

16-
cmake_minimum_required(VERSION 2.8.12)
1716
project(testing-resources)
1817
include(GenerateExportHeader)
1918

0 commit comments

Comments
 (0)