File: cmake-4.patch

package info (click to toggle)
gpick 0.2.6-1.2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,800 kB
  • sloc: cpp: 27,983; python: 738; xml: 70; makefile: 37; sh: 10
file content (36 lines) | stat: -rw-r--r-- 1,365 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
Description: Fix FTBFS with CMake 4
Author: Adrian Bunk <bunk@debian.org>
Bug-Debian: https://bugs.debian.org/1112974

--- gpick-0.2.6.orig/CMakeLists.txt
+++ gpick-0.2.6/CMakeLists.txt
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 3.1)
+cmake_minimum_required(VERSION 3.5)
 project(gpick)
 option(ENABLE_NLS "compile with gettext support" true)
 option(USE_GTK3 "use GTK3 instead of GTK2" true)
--- gpick-0.2.6.orig/cmake/FindGettext.cmake
+++ gpick-0.2.6/cmake/FindGettext.cmake
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.5)
 find_program(MSGMERGE_EXECUTABLE NAMES msgmerge)
 find_program(MSGFMT_EXECUTABLE NAMES msgfmt)
 find_program(MSGCAT_EXECUTABLE NAMES msgcat)
--- gpick-0.2.6.orig/cmake/FindRagel.cmake
+++ gpick-0.2.6/cmake/FindRagel.cmake
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.5)
 find_program(RAGEL_EXECUTABLE NAMES ragel DOC "path to the ragel executable")
 mark_as_advanced(RAGEL_EXECUTABLE)
 if (RAGEL_EXECUTABLE)
--- gpick-0.2.6.orig/cmake/Version.cmake
+++ gpick-0.2.6/cmake/Version.cmake
@@ -1,4 +1,4 @@
-cmake_minimum_required(VERSION 2.8)
+cmake_minimum_required(VERSION 3.5)
 find_program(GIT_EXECUTABLE git DOC "Git version control")
 mark_as_advanced(GIT_EXECUTABLE)
 find_file(GITDIR NAMES .git PATHS ${CMAKE_CURRENT_SOURCE_DIR} NO_DEFAULT_PATH)