Skip to content

Commit 31c8c5b

Browse files
committed
Setting cmake_minimum_required to 3.12 for v1.10
1 parent a72b841 commit 31c8c5b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0.
33
#
44

5-
cmake_minimum_required (VERSION 3.1)
5+
cmake_minimum_required (VERSION 3.12 FATAL_ERROR)
66
if(POLICY CMP0056)
77
cmake_policy(SET CMP0056 NEW) # CMP0056: Honor link flags in try_compile() source-file signature. Introduced in 3.2
88
endif()
@@ -13,12 +13,6 @@ if (POLICY CMP0077)
1313
cmake_policy(SET CMP0077 OLD) # CMP0077: option() honors normal variables. Introduced in 3.13
1414
endif()
1515

16-
# 3.12 or higher is strongly suggested; build settings (target_compile_options/etc...) sometimes do not get propagated properly under certain conditions prior to this version
17-
# 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
18-
if(CMAKE_VERSION VERSION_LESS 3.12)
19-
message(WARNING "Building with CMake 3.12 or higher is strongly suggested; current version is ${CMAKE_VERSION}")
20-
endif()
21-
2216
get_filename_component(AWS_NATIVE_SDK_ROOT "${CMAKE_CURRENT_SOURCE_DIR}" ABSOLUTE)
2317

2418
# Cmake invocation variables:

0 commit comments

Comments
 (0)