From d2f67ff7b9a1b70d6305783e53ce4fa887b95104 Mon Sep 17 00:00:00 2001 From: Valentin Volkl Date: Mon, 2 May 2022 15:55:15 +0200 Subject: lcio: fix possible issue with root's cxxstd (#30241) --- var/spack/repos/builtin/packages/lcio/package.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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") -- cgit v1.2.3-70-g09d2