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
This commit is contained in:
parent
1b5eaf62de
commit
1250b77607
@ -103,3 +103,12 @@ def patch(self):
|
||||
'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
|
||||
|
Loading…
Reference in New Issue
Block a user