summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Volkl <valentin.volkl@cern.ch>2022-05-02 15:55:15 +0200
committerGitHub <noreply@github.com>2022-05-02 15:55:15 +0200
commitd2f67ff7b9a1b70d6305783e53ce4fa887b95104 (patch)
tree10a339d434ff903f41d6bf8375ffdda03ecdada2
parentb5b62b0c8279df5641c280d7f177dca7384733cb (diff)
downloadspack-d2f67ff7b9a1b70d6305783e53ce4fa887b95104.tar.gz
spack-d2f67ff7b9a1b70d6305783e53ce4fa887b95104.tar.bz2
spack-d2f67ff7b9a1b70d6305783e53ce4fa887b95104.tar.xz
spack-d2f67ff7b9a1b70d6305783e53ce4fa887b95104.zip
lcio: fix possible issue with root's cxxstd (#30241)
-rw-r--r--var/spack/repos/builtin/packages/lcio/package.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/lcio/package.py b/var/spack/repos/builtin/packages/lcio/package.py
index 388f9866b1..f7d00645d6 100644
--- a/var/spack/repos/builtin/packages/lcio/package.py
+++ b/var/spack/repos/builtin/packages/lcio/package.py
@@ -36,7 +36,7 @@ class Lcio(CMakePackage):
variant('cxxstd',
default='17',
- values=('11', '14', '17'),
+ values=('11', '14', '17', '20'),
multi=False,
description='Use the specified C++ standard when building.')
variant("jar", default=False,
@@ -50,6 +50,10 @@ class Lcio(CMakePackage):
depends_on('sio@0.1:', when='@2.16:')
depends_on('root@6.04:', when="+rootdict")
+ depends_on('root@6.04: cxxstd=11', when="+rootdict cxxstd=11")
+ depends_on('root@6.04: cxxstd=14', when="+rootdict cxxstd=14")
+ depends_on('root@6.04: cxxstd=17', when="+rootdict cxxstd=17")
+ depends_on('root@6.04: cxxstd=20', when="+rootdict cxxstd=20")
depends_on('openjdk', when="+jar")
# build error with +termlib, to be investigated
depends_on('ncurses~termlib', when="+examples")