···11+From c49fc6ddb1a305a1ff7390b26de83eb35a5b8b12 Mon Sep 17 00:00:00 200122+From: Dave Walker <dave@daviey.com>33+Date: Thu, 9 Oct 2025 11:28:45 +010044+Subject: [PATCH] Update CMake minimum required version to 3.1055+66+CMake 4 removed compatibility with CMake versions < 3.5, and versions77+between 3.5-3.10 are deprecated.88+99+This change updates the minimum required version to 3.10 to ensure1010+compatibility with modern CMake versions including CMake 4.x.1111+1212+This issue is affecting NixOS users (see1313+https://github.com/NixOS/nixpkgs/issues/450198) and will likely impact1414+other distributions as they upgrade to CMake 4.x.1515+1616+Upstream PR: https://github.com/mfontanini/libtins/pull/5531717+---1818+ CMakeLists.txt | 2 +-1919+ cmake/Modules/CheckCXXFeatures.cmake | 2 +-2020+ 2 files changed, 2 insertions(+), 2 deletions(-)2121+2222+diff --git a/CMakeLists.txt b/CMakeLists.txt2323+index 3eb435f..a011a19 1006442424+--- a/CMakeLists.txt2525++++ b/CMakeLists.txt2626+@@ -1,4 +1,4 @@2727+-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.1)2828++CMAKE_MINIMUM_REQUIRED(VERSION 3.10)2929+ PROJECT(libtins)3030+3131+ OPTION(LIBTINS_BUILD_EXAMPLES "Build examples" ON)3232+diff --git a/cmake/Modules/CheckCXXFeatures.cmake b/cmake/Modules/CheckCXXFeatures.cmake3333+index b7b7f14..d924ddc 1006443434+--- a/cmake/Modules/CheckCXXFeatures.cmake3535++++ b/cmake/Modules/CheckCXXFeatures.cmake3636+@@ -50,7 +50,7 @@ if (NOT CMAKE_CXX_COMPILER_LOADED)3737+ message(FATAL_ERROR "CheckCXX11Features modules only works if language CXX is enabled")3838+ endif ()3939+4040+-cmake_minimum_required(VERSION 2.8.3)4141++cmake_minimum_required(VERSION 3.10)4242+4343+ #4444+ ### Check for needed compiler flags4545+-- 4646+2.51.04747+
+3
pkgs/by-name/li/libtins/package.nix
···2626 # See also an upstream report for gtest 1.13+ and C++14:2727 # https://github.com/mfontanini/libtins/issues/2828 ./0001-force-cpp-17.patch2929+ # Update CMake minimum required version for CMake 4 compatibility3030+ # https://github.com/mfontanini/libtins/pull/5533131+ ./cmake-3.10.patch2932 ];30333134 postPatch = ''