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 @@ def cmake_args(self): 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"),