Make dd4hep boost deps explicit (#29890)

This commit is contained in:
Hadrien G 2022-04-06 06:58:19 +02:00 committed by GitHub
parent 2816d28e90
commit 57e2ea1ac4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,6 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import * from spack import *
from spack.pkg.builtin.boost import Boost
class Dd4hep(CMakePackage): class Dd4hep(CMakePackage):
@ -82,10 +81,8 @@ class Dd4hep(CMakePackage):
depends_on('cmake @3.12:', type='build') depends_on('cmake @3.12:', type='build')
depends_on('ninja', type='build') depends_on('ninja', type='build')
depends_on('boost @1.49:') depends_on('boost @1.49:')
# TODO: replace this with an explicit list of components of Boost, depends_on('boost +iostreams', when='+ddg4')
# for instance depends_on('boost +filesystem') depends_on('boost +system +filesystem', when='%gcc@:7')
# See https://github.com/spack/spack/pull/22303 for reference
depends_on(Boost.with_default_variants)
depends_on('root @6.08: +gdml +math +python') depends_on('root @6.08: +gdml +math +python')
depends_on('root @6.08: +gdml +math +python +x +opengl', when="+ddeve") depends_on('root @6.08: +gdml +math +python +x +opengl', when="+ddeve")