spack/lib/spack
kwryankrattiger 2d9c6c3222
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.
2024-01-22 16:31:16 +01:00
..
docs Add documentation on checked_by license parameter (#41959) 2024-01-11 16:25:11 -08:00
env Revert "cc: work around -v split between ld and ccld" (#42196) 2024-01-19 17:59:41 +01:00
external Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
llnl Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00
spack CMakePackage pass python hints automatically (#42201) 2024-01-22 16:31:16 +01:00
spack_installable Update copyright year to 2024 (#41919) 2024-01-02 09:21:30 +01:00