summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorone <wangan.cs@gmail.com>2024-04-11 03:29:11 +0800
committerGitHub <noreply@github.com>2024-04-10 12:29:11 -0700
commitaba447e885ca679938d2900e39729321fe27d695 (patch)
tree20e3f8828ba0f5d03ccb00f9b935e8c2b95992e6 /var
parent1113de0dad5d1ad1b4339bd45791c779afc25c30 (diff)
downloadspack-aba447e885ca679938d2900e39729321fe27d695.tar.gz
spack-aba447e885ca679938d2900e39729321fe27d695.tar.bz2
spack-aba447e885ca679938d2900e39729321fe27d695.tar.xz
spack-aba447e885ca679938d2900e39729321fe27d695.zip
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 <alephpiece@users.noreply.github.com>
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/toml11/package.py11
1 files changed, 11 insertions, 0 deletions
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