File: 0004-Fix-FindPython-module-check.patch

package info (click to toggle)
ompl 1.6.0%2Bds1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 53,496 kB
  • sloc: cpp: 85,252; python: 4,916; sh: 215; xml: 26; javascript: 15; makefile: 11
file content (21 lines) | stat: -rw-r--r-- 781 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
From: Leopold Palomo-Avellaneda <leo@alaxarxa.net>
Date: Thu, 3 Apr 2025 12:35:20 +0200
Subject: Fix FindPython module check

---
 CMakeModules/FindPython.cmake | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeModules/FindPython.cmake b/CMakeModules/FindPython.cmake
index 6f99625..dc9f179 100644
--- a/CMakeModules/FindPython.cmake
+++ b/CMakeModules/FindPython.cmake
@@ -202,7 +202,7 @@ endmacro(find_boost_numpy)
 
 # macro that is similar to install, but corrects the python interpreter
 macro(install_python)
-    if (PYTHON_FOUND)
+    if (PYTHON_EXEC)
         cmake_parse_arguments(install_python "" "DESTINATION;COMPONENT;RENAME" "PROGRAMS" "${ARGN}")
         foreach(script ${install_python_PROGRAMS})
             file(READ ${script} _contents)