File: cmake-4.patch

package info (click to toggle)
prime-phylo 1.0.11-14
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,872 kB
  • sloc: cpp: 54,135; xml: 1,787; ansic: 1,346; perl: 951; yacc: 571; lex: 520; sh: 446; makefile: 197; asm: 2
file content (41 lines) | stat: -rw-r--r-- 1,760 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
Description: bump cmake requirement to v3.10.
 This version bump allows fixing build failures with cmake 4 and later.
 Strictly speaking a bump to 3.5 would be sufficient, but a bump to 3.10
 would also get us rid of the warning caused by the ancient cmake
 version.  The commented out CMakeLists.txt statement fails to configure
 due to CMP0026, thankfully it does not look needed later on.
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1113421
Forwarded: no
Last-Update: 2025-09-22
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- prime-phylo.orig/CMakeLists.txt
+++ prime-phylo/CMakeLists.txt
@@ -2,7 +2,7 @@
 # Level: trunk/CMakeLists.txt
 ################################################
 
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.10)
 project(prime-phylo CXX)
 
 SET(CMAKE_BUILD_TYPE Debug)
@@ -132,4 +132,4 @@
   file(MAKE_DIRECTORY "${vagrantdir}")
   configure_file(excluded_from_release/packaging/debian/Vagrantfile.cmake "${vagrant_dir}/Vagrantfile" @ONLY)
   configure_file(excluded_from_release/packaging/debian/provision.sh.cmake "${vagrant_dir}/provision.sh" @ONLY)
-endif()
\ No newline at end of file
+endif()
--- prime-phylo.orig/src/cxx/CMakeLists.txt
+++ prime-phylo/src/cxx/CMakeLists.txt
@@ -363,7 +363,7 @@
 #===========================================================================
 
 macro(prime_add_tests tests_dir)
-  get_target_property(program_exe ${programname_of_this_subdir} LOCATION)
+#  get_target_property(program_exe ${programname_of_this_subdir} LOCATION)
   file(GLOB tests RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${tests_dir}/test*[^~])
   foreach(i ${tests})
     get_filename_component(test ${i} NAME)