fms: add v2023.02 and v2023.01.01 (#39434)

* Add 2023.02 and 2023.01.01 with variant for mpp_io and fms_io deprecation

Co-authored-by: rem1776 <Ryan.Mulhall@noaa.gov>
This commit is contained in:
Ryan Mulhall 2023-08-23 21:58:50 -04:00 committed by GitHub
parent 4d42e9d1f3
commit 656528bbbb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,6 +18,10 @@ class Fms(CMakePackage):
maintainers("AlexanderRichert-NOAA", "Hang-Lei-NOAA", "edwardhartnett", "rem1776")
version("2023.02", sha256="dc029ffadfd82c334f104268bedd8635c77976485f202f0966ae4cf06d2374be")
version(
"2023.01.01", sha256="f83e2814a1e3ba439ab847ec8bb251f3889d5ca14fb20849507590adbbe8e899"
)
version("2023.01", sha256="6079ea885e9365513b453c77aadfc7c305bf413b840656bb333db1eabba0f18e")
version("2022.04", sha256="f741479128afc2b93ca8291a4c5bcdb024a8cbeda1a26bf77a236c0f629e1b03")
version("2022.03", sha256="42d2ac53d3c889a8177a6d7a132583364c0f6e5d5cbde0d980443b6797ad4838")
@ -73,6 +77,12 @@ class Fms(CMakePackage):
variant(
"pic", default=False, description="Build with position independent code", when="@2022.02:"
)
variant(
"deprecated_io",
default=False,
description="Compiles with support for deprecated io modules fms_io and mpp_io",
when="@2023.02:",
)
depends_on("netcdf-c")
depends_on("netcdf-fortran")
@ -89,6 +99,7 @@ def cmake_args(self):
self.define("32BIT", "precision=32" in self.spec),
self.define("64BIT", "precision=64" in self.spec),
self.define_from_variant("FPIC", "pic"),
self.define_from_variant("USE_DEPRECATED_IO", "deprecated_io"),
]
args.append(self.define("CMAKE_C_COMPILER", self.spec["mpi"].mpicc))