Skip to content

Commit

Permalink
Update package.py
Browse files Browse the repository at this point in the history
  • Loading branch information
AlysonStahl-NOAA committed Jun 3, 2024
1 parent 86ef651 commit 8a08a00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spack/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class G2(CMakePackage):
variant("w3emc", default=True, description="Enable GRIB1 through w3emc", when="@3.4.6:")
variant("openmp", default=False, description="Use OpenMP multithreading")
variant("utils", default=False, description="Build grib utilities")
variant("g2c_compare", default=False, description="Enable copygb2 tests using g2c_compare")

depends_on("jasper@:2.0.32", when="@:3.4.7")
depends_on("jasper")
Expand All @@ -49,6 +50,7 @@ class G2(CMakePackage):
depends_on("ip precision=d", when="^[email protected]:")
depends_on("sp", when="^ip@:4")
depends_on("sp precision=d", when="^ip@:4 ^[email protected]:")
depends_on("[email protected]: +utils", when="+g2c_compare")
with when("+w3emc"):
depends_on("w3emc")
depends_on("w3emc precision=4", when="precision=4")
Expand All @@ -61,6 +63,7 @@ def cmake_args(self):
self.define_from_variant("BUILD_WITH_W3EMC", "w3emc"),
self.define("BUILD_4", self.spec.satisfies("precision=4")),
self.define("BUILD_D", self.spec.satisfies("precision=d")),
self.define_from_variant("G2C_COMPARE", "g2c_compare"),
self.define_from_variant("BUILD_UTILS", "utils"),
]

Expand Down

0 comments on commit 8a08a00

Please sign in to comment.