Files
nixpkgs/pkgs/by-name/ma/maxflow/0001-Raise-minimum-CMake-version.patch
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

43 lines
1.1 KiB
Diff

From e4d8d49beebea53f5ed71d7134528a806e89d95f Mon Sep 17 00:00:00 2001
From: Marcin Serwin <marcin@serwin.dev>
Date: Sun, 5 Oct 2025 00:35:33 +0200
Subject: [PATCH] Raise minimum CMake version
Compatibility with CMake versions older than 3.5 is removed in CMake 4
and older than 3.10 is deprecated.
Signed-off-by: Marcin Serwin <marcin@serwin.dev>
---
CMakeLists.txt | 12 +-----------
1 file changed, 1 insertion(+), 11 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 68c9781..c77176c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,20 +13,10 @@
# You should have received a copy of the GNU General Public License
# along with MAXFLOW. If not, see <http://www.gnu.org/licenses/>.
+CMAKE_MINIMUM_REQUIRED(VERSION 3.10)
PROJECT("maxflow")
-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.5 FATAL_ERROR)
-
-if(COMMAND cmake_policy)
- cmake_policy(SET CMP0003 NEW)
- cmake_policy(SET CMP0012 NEW)
- IF(${CMAKE_VERSION} VERSION_GREATER 3.0.0)
- cmake_policy(SET CMP0042 NEW)
- ENDIF()
-endif(COMMAND cmake_policy)
-
-
SET(PACKAGE_NAME "maxflow")
SET(MAJOR_VERSION 3)
SET(MINOR_VERSION 0)
--
2.51.0