xxhashct/5.patch
Benjamin A. Beasley c9ab9ea045 Patch for CMake 4
2026-04-14 20:31:06 +01:00

27 lines
998 B
Diff

From 860fe53a085477365b46f31d46108d630f6c8aa1 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Tue, 14 Apr 2026 20:29:17 +0100
Subject: [PATCH] Update minimum CMake version to 3.12
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
CMake 4.0 drops support for CMake <3.5, so minimum versions need to be
adjusted for forward compatibility. We might as well ask for CMake 3.12,
which can be considered the oldest “modern” CMake release, which is
available in all known supported Linux distributions today, and which is
likely to remain supported for some time.
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ea6f90c..b03f9f4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.2)
+cmake_minimum_required(VERSION 3.12)
project (xxhashct)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")