ROOT: Set PYTHON_EXECUTABLE with +python variant (#11579)
* ROOT: Set PYTHON_EXECUTABLE with +python variant After cmake v3.12 FindPythonInterp used by llvm subsystem is deprecated. Setting -DPYTHON_EXECUTABLE=path_to_python fixes this error: 1 error found in build log: 118 -- Doxygen disabled. 119 -- Go bindings disabled. 120 -- LLVM host triple: x86_64-unknown-linux-gnu 121 -- LLVM default target triple: x86_64-unknown-linux-gnu 122 -- Building with -fPIC 123 -- Found PythonInterp: /usr/bin/python2.7 >> 124 CMake Error at interpreter/llvm/src/CMakeLists.txt:613 (if): 125 if given arguments: 126 127 "VERSION_LESS" "2.7" 128 129 Unknown arguments specified 130 * Flake8 * Update var/spack/repos/builtin/packages/root/package.py Co-Authored-By: Javier Cervantes <javiercvilla@gmail.com>
This commit is contained in:
parent
a7ffccfc97
commit
3a20a93bfa
@ -502,6 +502,11 @@ def cmake_args(self):
|
|||||||
options.append('-DFTGL_INCLUDE_DIR={0}'.format(
|
options.append('-DFTGL_INCLUDE_DIR={0}'.format(
|
||||||
self.spec['ftgl'].prefix.include))
|
self.spec['ftgl'].prefix.include))
|
||||||
|
|
||||||
|
# see https://github.com/spack/spack/pull/11579
|
||||||
|
if '+python' in self.spec:
|
||||||
|
options.append('-DPYTHON_EXECUTABLE=%s/python' %
|
||||||
|
self.spec['python'].prefix.bin)
|
||||||
|
|
||||||
return options
|
return options
|
||||||
|
|
||||||
def setup_environment(self, spack_env, run_env):
|
def setup_environment(self, spack_env, run_env):
|
||||||
|
Loading…
Reference in New Issue
Block a user