HomeFreeBSD

python.mk: Improve CMake/Python integration

Description

python.mk: Improve CMake/Python integration

Suport FindPython.cmake, FindPython3.cmake, FindPython2.cmake modules by
adding Python{,2,3}_EXECUTABLE to CMAKE_ARGS in python.mk.

CMake supports more than one way to search for python. Currently
python.mk passes -DPython_ADDITIONAL_VERSIONS=${PYTHON_VER} to help
FindPython{Interp,Libs}.cmake modules "find" the version of python that
a port build wants to use.

The FindPython{,2,3}.cmake modules don't know anything about
Python_ADDITIONAL_VERSIONS but use Python{,2,3}_EXECUTABLE as the hint.

PR: 262109

Details

Provenance
rfyu28uyeg_snkmail.comAuthored on Sep 4 2023, 4:23 PM
lwhsuCommitted on Sep 4 2023, 5:21 PM
Parents
R11:86744395617a: net-p2p/qbittorrent: Remove USE_QT=svg from the nox flavor
Branches
Unknown
Tags
Unknown