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)
|