-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from ACCESS-NRI/update_om3
Update OM3 package to take into account recent changes
- Loading branch information
Showing
1 changed file
with
7 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,6 +37,11 @@ class AccessOm3(CMakePackage): | |
multi=True, | ||
description="ACCESS-OM3 configurations to build", | ||
) | ||
variant( | ||
"install_libraries", | ||
default=False, | ||
description="Install component libraries" | ||
) | ||
variant("openmp", default=False, description="Enable OpenMP") | ||
variant("mom_symmetric", default=False, description="Use symmetric memory in MOM6") | ||
variant( | ||
|
@@ -53,12 +58,14 @@ class AccessOm3(CMakePackage): | |
depends_on("[email protected]:") | ||
depends_on("[email protected]:") | ||
depends_on("[email protected]:") | ||
depends_on("[email protected]:") | ||
|
||
flag_handler = CMakePackage.build_system_flags | ||
|
||
def cmake_args(self): | ||
args = [ | ||
self.define_from_variant("OM3_MOM_SYMMETRIC", "mom_symmetric"), | ||
self.define_from_variant("OM3_LIB_INSTALL", "install_libraries"), | ||
self.define_from_variant("OM3_OPENMP", "openmp"), | ||
self.define( | ||
"OM3_ENABLE_MOM6", "configurations=MOM6" in self.spec | ||
|