summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/xrootd/package.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/xrootd/package.py b/var/spack/repos/builtin/packages/xrootd/package.py
index bb55f600ea..ea9ff1d710 100644
--- a/var/spack/repos/builtin/packages/xrootd/package.py
+++ b/var/spack/repos/builtin/packages/xrootd/package.py
@@ -76,6 +76,11 @@ class Xrootd(CMakePackage):
format('ON' if '+readline' in spec else 'OFF'),
'-DENABLE_CEPH:BOOL=OFF'
]
+ # see https://github.com/spack/spack/pull/11581
+ if '+python' in self.spec:
+ options.append('-DPYTHON_EXECUTABLE=%s' %
+ spec['python'].command.path)
+
return options
def setup_environment(self, spack_env, run_env):