2012-11-11 12:13:31 -05:00
|
|
|
$OpenBSD: patch-Modules_FindPythonInterp_cmake,v 1.6 2012/11/11 17:13:31 dcoppa Exp $
|
2012-05-07 03:06:20 -04:00
|
|
|
--- Modules/FindPythonInterp.cmake.orig Mon Apr 30 11:57:33 2012
|
|
|
|
+++ Modules/FindPythonInterp.cmake Mon Apr 30 12:07:14 2012
|
|
|
|
@@ -29,6 +29,8 @@
|
|
|
|
# (To distribute this file outside of CMake, substitute the full
|
|
|
|
# License text for the above reference.)
|
2010-05-28 16:21:48 -04:00
|
|
|
|
2012-11-11 12:13:31 -05:00
|
|
|
+set(MODPY_VERSION $ENV{MODPY_VERSION})
|
2010-05-28 16:21:48 -04:00
|
|
|
+
|
2012-05-07 03:06:20 -04:00
|
|
|
unset(_Python_NAMES)
|
|
|
|
|
|
|
|
set(_PYTHON1_VERSIONS 1.6 1.5)
|
|
|
|
@@ -65,10 +67,14 @@ find_program(PYTHON_EXECUTABLE NAMES ${_Python_NAMES})
|
|
|
|
|
2011-03-13 14:23:01 -04:00
|
|
|
# Set up the versions we know about, in the order we will search. Always add
|
|
|
|
# the user supplied additional versions to the front.
|
|
|
|
-set(_Python_VERSIONS
|
|
|
|
- ${Python_ADDITIONAL_VERSIONS}
|
2012-05-07 03:06:20 -04:00
|
|
|
- ${_PYTHON_FIND_OTHER_VERSIONS}
|
|
|
|
- )
|
2012-11-11 12:13:31 -05:00
|
|
|
+if(MODPY_VERSION)
|
2011-03-13 14:23:01 -04:00
|
|
|
+ set(_Python_VERSIONS ${MODPY_VERSION})
|
2012-11-11 12:13:31 -05:00
|
|
|
+else(MODPY_VERSION)
|
2011-03-13 14:23:01 -04:00
|
|
|
+ set(_Python_VERSIONS
|
|
|
|
+ ${Python_ADDITIONAL_VERSIONS}
|
2012-05-07 03:06:20 -04:00
|
|
|
+ ${_PYTHON_FIND_OTHER_VERSIONS}
|
|
|
|
+ )
|
2012-11-11 12:13:31 -05:00
|
|
|
+endif(MODPY_VERSION)
|
2011-03-13 14:23:01 -04:00
|
|
|
|
2012-05-07 03:06:20 -04:00
|
|
|
unset(_PYTHON_FIND_OTHER_VERSIONS)
|
|
|
|
unset(_PYTHON1_VERSIONS)
|