mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
- Force cmake to use PYTHON_VER as version to detect, so that it uses
the same Python version for the interpreter and library linking, if multiple Python versions are installed. PR: ports/168159 On behalf of: python@
This commit is contained in:
parent
bed5423182
commit
abb9ab5e87
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299646
@ -676,6 +676,17 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/twisted/__init__.py:${PORTSDIR}/devel/py-twis
|
||||
|
||||
# XXX Hm, should I export some of the variables above to *_ENV?
|
||||
|
||||
# If multiple Python versions are installed and cmake is used, it might
|
||||
# happen that a cmake-enabled port using find_package(PythonLibs) and
|
||||
# find_package(PythonInterp) detects different Python versions.
|
||||
# This in turn might cause it to link against version X while using the
|
||||
# includes of version Y, leading to a broken port.
|
||||
# Enforce a certain Python version by using PYTHON_VER for cmake.
|
||||
.if defined(USE_CMAKE)
|
||||
CMAKE_ARGS+= -DPythonLibs_FIND_VERSION:STRING="${PYTHON_VER}" \
|
||||
-DPythonInterp_FIND_VERSION:STRING="${PYTHON_VER}"
|
||||
.endif
|
||||
|
||||
.endif # !defined(_POSTMKINCLUDED) && !defined(Python_Pre_Include)
|
||||
|
||||
.if defined(_POSTMKINCLUDED) && !defined(Python_Post_Include)
|
||||
|
Loading…
Reference in New Issue
Block a user