dd4hep: depends_on root +root7 in some cases (#43671)

* dd4hep: depends_on root +root7 in some cases

* dd4hep: avoid self-referential whens -> conflicts

* dd4hep: avoid conflict with (narrower) depends_on root@6.27:
This commit is contained in:
Wouter Deconinck 2024-06-20 07:22:47 -05:00 committed by GitHub
parent ffdab20294
commit 9cdb2a8dbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,10 +95,13 @@ class Dd4hep(CMakePackage):
depends_on("boost +iostreams", when="+ddg4") depends_on("boost +iostreams", when="+ddg4")
depends_on("boost +system +filesystem", when="%gcc@:7") depends_on("boost +system +filesystem", when="%gcc@:7")
depends_on("root @6.08: +gdml +math +python") depends_on("root @6.08: +gdml +math +python")
depends_on("root @6.12.2: +root7", when="@1.26:") # DDCoreGraphics needs ROOT::ROOTHistDraw
with when("+ddeve"): with when("+ddeve"):
depends_on("root @6.08: +x +opengl") depends_on("root @6.08: +x +opengl")
depends_on("root @:6.27", when="@:1.23") depends_on("root @:6.27", when="@:1.23")
conflicts("^root ~webgui", when="^root@6.28:") conflicts("^root ~webgui", when="^root@6.28:")
# For DD4hep >= 1.24, DDEve_Interface needs ROOT::ROOTGeomViewer only if ROOT >= 6.27
requires("^root +root7 +webgui", when="@1.24: ^root @6.27:")
depends_on("root @6.08: +gdml +math +python +x +opengl", when="+utilityapps") depends_on("root @6.08: +gdml +math +python +x +opengl", when="+utilityapps")
extends("python") extends("python")