From aba447e885ca679938d2900e39729321fe27d695 Mon Sep 17 00:00:00 2001 From: one Date: Thu, 11 Apr 2024 03:29:11 +0800 Subject: Add new versions for toml11 (#43469) * Add new versions for toml11 Added 3.8.0 and 3.8.1 * Update package.py, add cxx_std * [@spackbot] updating style on behalf of alephpiece --------- Co-authored-by: alephpiece --- var/spack/repos/builtin/packages/toml11/package.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/toml11/package.py b/var/spack/repos/builtin/packages/toml11/package.py index cec19cf10a..35400e8710 100644 --- a/var/spack/repos/builtin/packages/toml11/package.py +++ b/var/spack/repos/builtin/packages/toml11/package.py @@ -18,6 +18,8 @@ class Toml11(CMakePackage): license("MIT") + version("3.8.1", sha256="6a3d20080ecca5ea42102c078d3415bef80920f6c4ea2258e87572876af77849") + version("3.8.0", sha256="36ce64b09f9151b57ba1970f12a591006fcae17b751ba011314c1f5518e77bc7") version("3.7.1", sha256="afeaa9aa0416d4b6b2cd3897ca55d9317084103077b32a852247d8efd4cf6068") version("3.7.0", sha256="a0b6bec77c0e418eea7d270a4437510884f2fe8f61e7ab121729624f04c4b58e") version("3.6.1", sha256="ca4c390ed8da0d77ae6eca30e70ab0bf5cc92adfc1bc2f71a2066bc5656d8d96") @@ -29,3 +31,12 @@ class Toml11(CMakePackage): version("3.2.1", sha256="370f17409cfcbf3f629728ed7ec2e1573544058615fb5d066f4f7c14693143a9") version("3.2.0", sha256="3d54cac38ea24477190e0535377e824bf06562970ef4d35b59aa9729437e1019") version("3.1.0", sha256="3a118f32e5343998f37be9807c72fd11c3168fe12a5b1abfdc0f1e60de6380a4") + + variant( + "cxx_std", default="11", description="C++ standard", values=("11", "14", "17"), multi=False + ) + + @when("@3.8.0:3.8.1") + def cmake_args(self): + args = [self.define_from_variant("CMAKE_CXX_STANDARD", "cxx_std")] + return args -- cgit v1.2.3-70-g09d2