From 21f535c978812ab2d9afcbe887fc2ad228c0d92e Mon Sep 17 00:00:00 2001 From: Sandy Zhang Date: Thu, 12 Dec 2024 13:57:28 -0800 Subject: [PATCH] Update cmake minimum version to >=3.16. This is per https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md #test-continuous PiperOrigin-RevId: 705621683 --- CMakeLists.txt | 2 +- cmake/dependencies_generator.py | 2 +- third_party/utf8_range/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 63e0f5bdf8860..cfc5ccbca3dfb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # Minimum CMake required. If available, accept the policy-controlled behavior up # to 3.26. -cmake_minimum_required(VERSION 3.10...3.26) +cmake_minimum_required(VERSION 3.16...3.26) # Revert to old behavior for MSVC debug symbols. if(POLICY CMP0141) diff --git a/cmake/dependencies_generator.py b/cmake/dependencies_generator.py index b7b2deeb1fdfc..ee15632178440 100644 --- a/cmake/dependencies_generator.py +++ b/cmake/dependencies_generator.py @@ -114,7 +114,7 @@ def convert(self): # # Changes to this file will be overwritten based on Bazel definitions. - if(${CMAKE_VERSION} VERSION_GREATER 3.10 OR ${CMAKE_VERSION} VERSION_EQUAL 3.10) + if(${CMAKE_VERSION} VERSION_GREATER 3.16 OR ${CMAKE_VERSION} VERSION_EQUAL 3.16) include_guard() endif() diff --git a/third_party/utf8_range/CMakeLists.txt b/third_party/utf8_range/CMakeLists.txt index e054893c63bf2..67d2094cdaa77 100644 --- a/third_party/utf8_range/CMakeLists.txt +++ b/third_party/utf8_range/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 3.5) +cmake_minimum_required (VERSION 3.16) project (utf8_range C CXX) # option() honor variables