edm4hep: allow variant cxxstd 20, sync with podio (#32698)
Now that `podio` can support `cxxstd` variants 17 and 20, we can allow `edm4hep` to use `cxxstd=20` as well, but must ensure that `edm4hep` uses the same `cxxstd` variant as `podio`. Solution as in `celeritas`.
This commit is contained in:
parent
51d2c05022
commit
0298823e28
@ -54,10 +54,11 @@ class Edm4hep(CMakePackage):
|
|||||||
|
|
||||||
patch("test-deps.patch", when="@:0.3.2")
|
patch("test-deps.patch", when="@:0.3.2")
|
||||||
|
|
||||||
|
_cxxstd_values = ("17", "20")
|
||||||
variant(
|
variant(
|
||||||
"cxxstd",
|
"cxxstd",
|
||||||
default="17",
|
default="17",
|
||||||
values=("17",),
|
values=_cxxstd_values,
|
||||||
multi=False,
|
multi=False,
|
||||||
description="Use the specified C++ standard when building.",
|
description="Use the specified C++ standard when building.",
|
||||||
)
|
)
|
||||||
@ -70,6 +71,9 @@ class Edm4hep(CMakePackage):
|
|||||||
depends_on("podio@0.14.1:", when="@0.4.1:")
|
depends_on("podio@0.14.1:", when="@0.4.1:")
|
||||||
depends_on("podio@0.14", when="@0.4")
|
depends_on("podio@0.14", when="@0.4")
|
||||||
depends_on("podio@0.13.0:0.13", when="@:0.3")
|
depends_on("podio@0.13.0:0.13", when="@:0.3")
|
||||||
|
for _std in _cxxstd_values:
|
||||||
|
depends_on("podio cxxstd=" + _std, when="cxxstd=" + _std)
|
||||||
|
|
||||||
depends_on("py-jinja2", type="build")
|
depends_on("py-jinja2", type="build")
|
||||||
depends_on("py-pyyaml", type="build")
|
depends_on("py-pyyaml", type="build")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user