diff options
author | drochner <drochner@pkgsrc.org> | 2010-02-12 13:45:54 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2010-02-12 13:45:54 +0000 |
commit | 2dc69827a2f55663ab6520ebce4761aea071c0e8 (patch) | |
tree | 2200f88b4fc5908dcc7c81769723ec702087b94c /lang | |
parent | 06c7e6cccf67d2ee127e9069492a5e3d37006f1f (diff) | |
download | pkgsrc-2dc69827a2f55663ab6520ebce4761aea071c0e8.tar.gz |
allow to override cmake's Python search order, to enforce the version
selected by pkgsrc
this automatically affects pkgs which use FIND_PACKAGE(PythonInterp)
or FIND_PACKAGE(PythonLibs)
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/pyversion.mk | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lang/python/pyversion.mk b/lang/python/pyversion.mk index 52663bbd926..e542efa91d9 100644 --- a/lang/python/pyversion.mk +++ b/lang/python/pyversion.mk @@ -1,4 +1,4 @@ -# $NetBSD: pyversion.mk,v 1.79 2010/02/10 19:16:48 joerg Exp $ +# $NetBSD: pyversion.mk,v 1.80 2010/02/12 13:45:54 drochner Exp $ # This file determines which Python version is used as a dependency for # a package. @@ -175,5 +175,9 @@ PRINT_PLIST_AWK+= /^${PYLIB:S|/|\\/|g}/ \ .endif ALL_ENV+= PYTHON=${PYTHONBIN} +.if defined(USE_CMAKE) +# used by FindPythonInterp.cmake and FindPythonLibs.cmake +CMAKE_ARGS+= -DPYVERSSUFFIX:STRING=${PYVERSSUFFIX} +.endif .endif # PYTHON_PYVERSION_MK |