diff options
author | kwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com> | 2024-01-22 09:31:16 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 16:31:16 +0100 |
commit | 2d9c6c32228f94e3e5595283b52ae7cc5a160e16 (patch) | |
tree | f11c3ffba04496f7878a0a4dff57e030f6c9bed0 /bin | |
parent | b28692dc723fa74a19d0b0795b46176b2dc59c5c (diff) | |
download | spack-2d9c6c32228f94e3e5595283b52ae7cc5a160e16.tar.gz spack-2d9c6c32228f94e3e5595283b52ae7cc5a160e16.tar.bz2 spack-2d9c6c32228f94e3e5595283b52ae7cc5a160e16.tar.xz spack-2d9c6c32228f94e3e5595283b52ae7cc5a160e16.zip |
CMakePackage pass python hints automatically (#42201)
This commit ensures that CMake packages that also have Python as a build/link dep get a couple defines for the Python path so that CMake's builtin `FindPython3`, `FindPython`, `FindPythonInterp` modules can locate Python correctly.
The main problem with those CMake modules is that they first search for Python versions known at the time of release, meaning that old CMake maybe find older system Python 3.8 even though Python 3.11 comes first in `CMAKE_PREFIX_PATH` and `PATH`.
Package maintainers can opt out of this by overriding the `find_python_hints = False` attribute in the package class.
Diffstat (limited to 'bin')
0 files changed, 0 insertions, 0 deletions