From 96b73023cd5c60721ee2abdedda70e94d734e015 Mon Sep 17 00:00:00 2001 From: Marcus Holland-Moritz <github@mhxnet.de> Date: Fri, 14 Mar 2025 21:54:49 +0100 Subject: [PATCH] build: update cmake_minimum_required to 3.10 Compatibility with versions older than 3.5 has been deprecated since cmake 3.27 and has now been removed with cmake 4.0. Compatibility with versions before 3.10 has been deprecated since cmake 3.31. This changes the requirement to 3.10 to allow this project to still be built with cmake 4.0 without any deprecation warning. --- CMakeLists.txt | 2 +- CMakeListsForBuck2.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f76a5b944b7..a8a888f7fe3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) +cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # We use the GoogleTest module if it is available (only in CMake 3.9+) # It requires CMP0054 and CMP0057 to be enabled. if (POLICY CMP0054) diff --git a/CMakeListsForBuck2.txt b/CMakeListsForBuck2.txt index 85b2323cb10..f2e6968346f 100644 --- a/CMakeListsForBuck2.txt +++ b/CMakeListsForBuck2.txt @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -cmake_minimum_required(VERSION 3.0.2 FATAL_ERROR) +cmake_minimum_required(VERSION 3.10 FATAL_ERROR) # We use the GoogleTest module if it is available (only in CMake 3.9+) # It requires CMP0054 and CMP0057 to be enabled. if (POLICY CMP0054)