$NetBSD: patch-ab,v 1.10 2011/02/22 15:05:33 adam Exp $ --- Modules/FindPythonInterp.cmake.orig 2011-02-15 17:47:27.000000000 +0000 +++ Modules/FindPythonInterp.cmake @@ -20,11 +20,18 @@ # (To distribute this file outside of CMake, substitute the full # License text for the above reference.) +# for pkgsrc: force Python version (set in pyversion.mk) +IF(DEFINED PYVERSSUFFIX) + SET(_VERSIONS ${PYVERSSUFFIX}) +ELSE(DEFINED PYVERSSUFFIX) + SET(_VERSIONS 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5) +ENDIF(DEFINED PYVERSSUFFIX) + # 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} - 2.7 2.6 2.5 2.4 2.3 2.2 2.1 2.0 1.6 1.5) + ${_VERSIONS}) # Run first with the Python version in the executable foreach(_CURRENT_VERSION ${_Python_VERSIONS})