File: cmake-4.patch

package info (click to toggle)
iqtree 2.0.7%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,700 kB
  • sloc: cpp: 142,571; ansic: 57,789; sh: 275; python: 242; makefile: 95
file content (48 lines) | stat: -rw-r--r-- 1,569 bytes parent folder | download
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
48
Description: bump cmake requirement to 3.10.
 This fixes failures to configure build with cmake 4.
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1096850
Forwarded: no
Last-Update: 2025-10-08
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- iqtree.orig/CMakeLists.txt
+++ iqtree/CMakeLists.txt
@@ -53,7 +53,7 @@
 #NOTE: Static linking with clang windows: make a symlink libgcc_eh.a to libgcc.a (administrator required)
 # C:\TDM-GCC-64\lib\gcc\x86_64-w64-mingw32\5.1.0>mklink libgcc_eh.a libgcc.a
 
-cmake_minimum_required(VERSION 2.8.10 FATAL_ERROR)
+cmake_minimum_required(VERSION 3.10 FATAL_ERROR)
 set(CMAKE_LEGACY_CYGWIN_WIN32 0)
 
 set(GCC_MIN_VERSION "4.8")
--- iqtree.orig/terraphast/CMakeLists.txt
+++ iqtree/terraphast/CMakeLists.txt
@@ -1,6 +1,6 @@
 project(terraphast C CXX)
 
-cmake_minimum_required(VERSION 3.0.2)
+cmake_minimum_required(VERSION 3.10)
 cmake_policy(SET CMP0054 NEW)
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
 
--- iqtree.orig/yaml-cpp/CMakeLists.txt
+++ iqtree/yaml-cpp/CMakeLists.txt
@@ -2,7 +2,7 @@
 ### CMake settings
 ###
 # see http://www.cmake.org/Wiki/CMake_Policies
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.10)
 
 include(CheckCXXCompilerFlag)
 
--- iqtree.orig/yaml-cpp/util/CMakeLists.txt
+++ iqtree/yaml-cpp/util/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.5)
+cmake_minimum_required(VERSION 3.10)
 
 add_sources(parse.cpp)
 add_executable(parse parse.cpp)