summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Gartung <gartung@fnal.gov>2019-05-29 12:02:21 -0500
committerGitHub <noreply@github.com>2019-05-29 12:02:21 -0500
commit3a20a93bfa3aecbd3032a74a1693cf312e1c002b (patch)
treea7edf79931b980974d9e7e71d4bb257a5f325305
parenta7ffccfc97066431193fad8bcd70eb9ce053a105 (diff)
downloadspack-3a20a93bfa3aecbd3032a74a1693cf312e1c002b.tar.gz
spack-3a20a93bfa3aecbd3032a74a1693cf312e1c002b.tar.bz2
spack-3a20a93bfa3aecbd3032a74a1693cf312e1c002b.tar.xz
spack-3a20a93bfa3aecbd3032a74a1693cf312e1c002b.zip
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>
-rw-r--r--var/spack/repos/builtin/packages/root/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py
index 312ccff330..a1a8bb9527 100644
--- a/var/spack/repos/builtin/packages/root/package.py
+++ b/var/spack/repos/builtin/packages/root/package.py
@@ -502,6 +502,11 @@ class Root(CMakePackage):
options.append('-DFTGL_INCLUDE_DIR={0}'.format(
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
def setup_environment(self, spack_env, run_env):