From 24f3c4295f9df38730e122353c3fbc6daf46df27 Mon Sep 17 00:00:00 2001 From: Adam Novak Date: Tue, 22 Apr 2025 14:58:24 -0400 Subject: [PATCH] Bump CMake minimum version to oldest non-deprecated CMake 4 has started failing builds on CMakeLists.txt files that claim to be compatible with CMake 3.5 or earlier, on the theory that that's unlikely to actually be under CI testing in the project being built. There's a workaround of defining a variable on the command line, but that doesn't work if the offending project is behind two or more levels of dependencies. This updates the CMakeLists.txt to build on CMake 4, and notes that it contemplates CMake versions up to 4.0, while dropping support for building on versions of CMake that CMake 4 deprecates. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 571d0d9..3310877 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ ### cmake file for building libdivsufsort Package ### -cmake_minimum_required(VERSION 2.4.4) +cmake_minimum_required(VERSION 3.10...4.0) set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMakeModules") include(AppendCompilerFlags)