File tree Expand file tree Collapse file tree 4 files changed +6
-41
lines changed Expand file tree Collapse file tree 4 files changed +6
-41
lines changed Original file line number Diff line number Diff line change 1
- cmake_minimum_required(VERSION 3.10 )
1
+ cmake_minimum_required(VERSION 3.16 )
2
2
3
3
project(googletest-external NONE)
4
4
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ section of your executable or of your library.<br>
39
39
Here is a short CMakeLists.txt example of an application project using Abseil.
40
40
41
41
``` cmake
42
- cmake_minimum_required(VERSION 3.10 )
42
+ cmake_minimum_required(VERSION 3.16 )
43
43
project(my_app_project)
44
44
45
45
# Pick the C++ standard to compile with.
@@ -62,7 +62,7 @@ will control Abseil library targets) is set to at least that minimum. For
62
62
example:
63
63
64
64
``` cmake
65
- cmake_minimum_required(VERSION 3.10 )
65
+ cmake_minimum_required(VERSION 3.16 )
66
66
project(my_lib_project)
67
67
68
68
# Leave C++ standard up to the root application, so set it only if this is the
Original file line number Diff line number Diff line change 15
15
16
16
# A simple CMakeLists.txt for testing cmake installation
17
17
18
- cmake_minimum_required (VERSION 3.10 )
18
+ cmake_minimum_required (VERSION 3.16 )
19
19
project (absl_cmake_testing CXX )
20
20
21
21
add_executable (simple simple.cc )
Original file line number Diff line number Diff line change 15
15
#
16
16
17
17
# https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md
18
- # As of 2022-09-06, CMake 3.10 is the minimum supported version.
19
- cmake_minimum_required (VERSION 3.10 )
20
-
21
- # Compiler id for Apple Clang is now AppleClang.
22
- if (POLICY CMP0025 )
23
- cmake_policy (SET CMP0025 NEW )
24
- endif (POLICY CMP0025 )
25
-
26
- # if command can use IN_LIST
27
- if (POLICY CMP0057 )
28
- cmake_policy (SET CMP0057 NEW )
29
- endif (POLICY CMP0057 )
30
-
31
- # Project version variables are the empty string if version is unspecified
32
- if (POLICY CMP0048 )
33
- cmake_policy (SET CMP0048 NEW )
34
- endif (POLICY CMP0048 )
35
-
36
- # Honor the GTest_ROOT variable if specified
37
- if (POLICY CMP0074 )
38
- cmake_policy (SET CMP0074 NEW )
39
- endif (POLICY CMP0074 )
40
-
41
- # option() honor variables
42
- if (POLICY CMP0077 )
43
- cmake_policy (SET CMP0077 NEW )
44
- endif (POLICY CMP0077 )
45
-
46
- # Allow the user to specify the MSVC runtime
47
- if (POLICY CMP0091 )
48
- cmake_policy (SET CMP0091 NEW )
49
- endif (POLICY CMP0091 )
50
-
51
- # try_compile() honors the CMAKE_CXX_STANDARD value
52
- if (POLICY CMP0067 )
53
- cmake_policy (SET CMP0067 NEW )
54
- endif (POLICY CMP0067 )
18
+ # As of 2024-07-01, CMake 3.16 is the minimum supported version.
19
+ cmake_minimum_required (VERSION 3.16 )
55
20
56
21
# Allow the user to specify the CMAKE_MSVC_DEBUG_INFORMATION_FORMAT
57
22
if (POLICY CMP0141 )
You can’t perform that action at this time.
0 commit comments