From 2dc69827a2f55663ab6520ebce4761aea071c0e8 Mon Sep 17 00:00:00 2001 From: drochner Date: Fri, 12 Feb 2010 13:45:54 +0000 Subject: 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) --- lang/python/pyversion.mk | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lang') 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 -- cgit v1.2.3