summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMicael Oliveira <micael.oliveira@anu.edu.au>2024-04-20 03:51:58 +1000
committerGitHub <noreply@github.com>2024-04-19 10:51:58 -0700
commit26515b88718058b94556c938f1caf2d8bf828f02 (patch)
treeb256d3fa1e6f74340613b39386d42fae642de86f /var
parent74640987c7d80961d804b8603ffcce6711aa55a6 (diff)
downloadspack-26515b88718058b94556c938f1caf2d8bf828f02.tar.gz
spack-26515b88718058b94556c938f1caf2d8bf828f02.tar.bz2
spack-26515b88718058b94556c938f1caf2d8bf828f02.tar.xz
spack-26515b88718058b94556c938f1caf2d8bf828f02.zip
fms: add two variants (#43734)
* fms: add two variants supporting existing build options. * Style fixes.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/fms/package.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/fms/package.py b/var/spack/repos/builtin/packages/fms/package.py
index 10cbf09a22..4bfbe8426f 100644
--- a/var/spack/repos/builtin/packages/fms/package.py
+++ b/var/spack/repos/builtin/packages/fms/package.py
@@ -85,6 +85,12 @@ class Fms(CMakePackage):
description="Compiles with support for deprecated io modules fms_io and mpp_io",
when="@2023.02:",
)
+ variant("large_file", default=False, description="Enable compiler definition -Duse_LARGEFILE.")
+ variant(
+ "internal_file_nml",
+ default=True,
+ description="Enable compiler definition -DINTERNAL_FILE_NML.",
+ )
depends_on("netcdf-c")
depends_on("netcdf-fortran")
@@ -98,6 +104,8 @@ class Fms(CMakePackage):
self.define_from_variant("ENABLE_QUAD_PRECISION", "quad_precision"),
self.define_from_variant("WITH_YAML", "yaml"),
self.define_from_variant("CONSTANTS"),
+ self.define_from_variant("LARGEFILE", "large_file"),
+ self.define_from_variant("INTERNAL_FILE_NML"),
self.define("32BIT", "precision=32" in self.spec),
self.define("64BIT", "precision=64" in self.spec),
self.define_from_variant("FPIC", "pic"),