File: 0010-Fix-CMakeLists-Find-Python3.patch

package info (click to toggle)
speedcrunch 0.12.0-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,232 kB
  • sloc: cpp: 17,603; ansic: 14,719; javascript: 8,678; python: 557; sh: 236; xml: 135; makefile: 23
file content (19 lines) | stat: -rw-r--r-- 560 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Fix the way to find Python 3. The old was deprecated
Author: Marcos Talau <talau@debian.org>
Bug-Debian: https://bugs.debian.org/1113535
Last-Update: 2025-11-01

--- speedcrunch-0.12.0.orig/doc/src/CMakeLists.txt
+++ speedcrunch-0.12.0/doc/src/CMakeLists.txt
@@ -12,7 +12,10 @@ list(APPEND doc_depends
 
 
 # find Python
-find_package(PythonInterp 3.4 QUIET)
+find_package(Python3 COMPONENTS Interpreter)
+if(Python3_FOUND)
+    set(PYTHON_EXECUTABLE ${Python3_EXECUTABLE})
+endif()
 
 # get a path for qcollectiongenerator
 find_package(Qt5Help)