From 1250b776076c4f3b2f5b99a744453d64fc6985d3 Mon Sep 17 00:00:00 2001 From: Nils Leif Fischer Date: Tue, 4 Jan 2022 09:10:39 +0100 Subject: 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 --- var/spack/repos/builtin/packages/doxygen/package.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3-70-g09d2