clhep: support variant cxxstd=20 (#39768)

This commit is contained in:
Wouter Deconinck 2023-09-05 05:06:50 -05:00 committed by GitHub
parent 06b6b05dbd
commit f0658243c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -53,13 +53,16 @@ class Clhep(CMakePackage):
variant( variant(
"cxxstd", "cxxstd",
default="11", default="11",
values=("11", "14", "17"), values=(
"11",
"14",
conditional("17", when="@2.3.4.3:"),
conditional("20", when="@2.4.6.4:"),
),
multi=False, multi=False,
description="Use the specified C++ standard when building.", description="Use the specified C++ standard when building.",
) )
conflicts("cxxstd=17", when="@:2.3.4.2")
depends_on("cmake@2.8.12.2:", when="@2.2.0.4:2.3.0.0", type="build") depends_on("cmake@2.8.12.2:", when="@2.2.0.4:2.3.0.0", type="build")
depends_on("cmake@3.2:", when="@2.3.0.1:", type="build") depends_on("cmake@3.2:", when="@2.3.0.1:", type="build")