summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/xrootd/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/xrootd/package.py')
-rw-r--r--var/spack/repos/builtin/packages/xrootd/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/xrootd/package.py b/var/spack/repos/builtin/packages/xrootd/package.py
index 1f3caa1ed6..7cefe530bd 100644
--- a/var/spack/repos/builtin/packages/xrootd/package.py
+++ b/var/spack/repos/builtin/packages/xrootd/package.py
@@ -60,6 +60,9 @@ class Xrootd(CMakePackage):
multi=False,
description='Use the specified C++ standard when building.')
+ variant('scitokens-cpp', default=False,
+ when='@5.1.0:', description='Enable support for SciTokens')
+
conflicts('cxxstd=98', when='@4.7.0:')
depends_on('bzip2')
@@ -74,6 +77,7 @@ class Xrootd(CMakePackage):
depends_on('curl')
depends_on('krb5', when='+krb5')
depends_on('json-c')
+ depends_on('scitokens-cpp', when='+scitokens-cpp')
extends('python', when='+python')
patch('python-support.patch', level=1, when='@:4.8+python')
@@ -105,6 +109,10 @@ class Xrootd(CMakePackage):
options.append('-DPYTHON_EXECUTABLE=%s' %
spec['python'].command.path)
+ if '+scitokens-cpp' in self.spec:
+ options.append('-DSCITOKENS_CPP_DIR=%s' %
+ spec['scitokens-cpp'].prefix)
+
return options
def setup_build_environment(self, env):