1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
|
From 518f7e8ea9b14f88cc1f996700c93fff5c700419 Mon Sep 17 00:00:00 2001
From: yangfl <yangfl@users.noreply.github.com>
Date: Sun, 14 Sep 2025 13:21:49 +0800
Subject: [PATCH 12/12] CMakeLists.txt: fix FTBFS with CMake 4
---
CMakeLists.txt | 2 +-
k2pdfoptlib/CMakeLists.txt | 2 +-
willuslib/CMakeLists.txt | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ffc5019..ce2abfc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,5 @@
project(k2pdfopt C)
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 2.6...3.31)
#
# Last modified by Q.P. Hou 8 June 2019
diff --git a/k2pdfoptlib/CMakeLists.txt b/k2pdfoptlib/CMakeLists.txt
index 330db0c..d34de84 100644
--- a/k2pdfoptlib/CMakeLists.txt
+++ b/k2pdfoptlib/CMakeLists.txt
@@ -1,5 +1,5 @@
project(k2pdfopt C)
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 2.6...3.31)
include_directories(..)
diff --git a/willuslib/CMakeLists.txt b/willuslib/CMakeLists.txt
index 09cb7d8..1d37a40 100644
--- a/willuslib/CMakeLists.txt
+++ b/willuslib/CMakeLists.txt
@@ -1,5 +1,5 @@
project(k2pdfopt C)
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 2.6...3.31)
#
# Last update 31 May 2020 willus.com
#
--
2.51.0
|