summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorkwryankrattiger <80296582+kwryankrattiger@users.noreply.github.com>2024-01-22 09:31:16 -0600
committerGitHub <noreply@github.com>2024-01-22 16:31:16 +0100
commit2d9c6c32228f94e3e5595283b52ae7cc5a160e16 (patch)
treef11c3ffba04496f7878a0a4dff57e030f6c9bed0 /bin
parentb28692dc723fa74a19d0b0795b46176b2dc59c5c (diff)
downloadspack-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