lcio: fix possible issue with root's cxxstd (#30241)

This commit is contained in:
Valentin Volkl 2022-05-02 15:55:15 +02:00 committed by GitHub
parent b5b62b0c82
commit d2f67ff7b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -36,7 +36,7 @@ class Lcio(CMakePackage):
variant('cxxstd', variant('cxxstd',
default='17', default='17',
values=('11', '14', '17'), values=('11', '14', '17', '20'),
multi=False, multi=False,
description='Use the specified C++ standard when building.') description='Use the specified C++ standard when building.')
variant("jar", default=False, variant("jar", default=False,
@ -50,6 +50,10 @@ class Lcio(CMakePackage):
depends_on('sio@0.1:', when='@2.16:') depends_on('sio@0.1:', when='@2.16:')
depends_on('root@6.04:', when="+rootdict") 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") depends_on('openjdk', when="+jar")
# build error with +termlib, to be investigated # build error with +termlib, to be investigated
depends_on('ncurses~termlib', when="+examples") depends_on('ncurses~termlib', when="+examples")