195d9f90cf
OK sthen@, landry@ (who also tested this in a bulk build)
22 lines
905 B
Plaintext
22 lines
905 B
Plaintext
$OpenBSD: patch-Modules_FindPythonInterp_cmake,v 1.2 2010/11/15 11:39:09 dcoppa Exp $
|
|
--- Modules/FindPythonInterp.cmake.orig Tue Apr 6 16:45:31 2010
|
|
+++ Modules/FindPythonInterp.cmake Tue May 11 14:23:03 2010
|
|
@@ -19,8 +19,16 @@
|
|
# (To distribute this file outside of CMake, substitute the full
|
|
# License text for the above reference.)
|
|
|
|
+SET(MODPY_BIN $ENV{MODPY_BIN})
|
|
+
|
|
+IF(MODPY_BIN)
|
|
+ SET(_EXECUTABLES ${MODPY_BIN})
|
|
+ELSE(MODPY_BIN)
|
|
+ SET(_EXECUTABLES python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python)
|
|
+ENDIF(MODPY_BIN)
|
|
+
|
|
FIND_PROGRAM(PYTHON_EXECUTABLE
|
|
- NAMES python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 python
|
|
+ NAMES ${_EXECUTABLES}
|
|
PATHS
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.7\\InstallPath]
|
|
[HKEY_LOCAL_MACHINE\\SOFTWARE\\Python\\PythonCore\\2.6\\InstallPath]
|