diff options
author | Nils Leif Fischer <nils.fischer@aei.mpg.de> | 2022-01-04 09:10:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 09:10:39 +0100 |
commit | 1250b776076c4f3b2f5b99a744453d64fc6985d3 (patch) | |
tree | 3f41a9c0859ceaa0af1dd4417872a7257a96db77 /var | |
parent | 1b5eaf62dec7f9499fa7fe2477e5923f05d67d19 (diff) | |
download | spack-1250b776076c4f3b2f5b99a744453d64fc6985d3.tar.gz spack-1250b776076c4f3b2f5b99a744453d64fc6985d3.tar.bz2 spack-1250b776076c4f3b2f5b99a744453d64fc6985d3.tar.xz spack-1250b776076c4f3b2f5b99a744453d64fc6985d3.zip |
doxygen: fix build issue with external Py3 (#28216)
Doxygen's build system uses CMake's deprecated `FindPythonInterp`,
which can get confused by other `python` executables in the PATH.
See issue: https://github.com/spack/spack/issues/28215
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/doxygen/package.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/doxygen/package.py b/var/spack/repos/builtin/packages/doxygen/package.py index 5a7a548dd9..d62edbfa8f 100644 --- a/var/spack/repos/builtin/packages/doxygen/package.py +++ b/var/spack/repos/builtin/packages/doxygen/package.py @@ -103,3 +103,12 @@ class Doxygen(CMakePackage): 'set(ICONV_IN_GLIBC FALSE)', join_path('cmake', 'FindIconv.cmake'), string=True) + + def cmake_args(self): + args = [ + # Doxygen's build system uses CMake's deprecated `FindPythonInterp`, + # which can get confused by other `python` executables in the PATH. + # See issue: https://github.com/spack/spack/issues/28215 + self.define('PYTHON_EXECUTABLE', self.spec['python'].command.path) + ] + return args |