Skip to content

Commit

Permalink
cable: add new variant "library" (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
bschroeter authored Dec 18, 2024
1 parent aacb3f1 commit 3e44b5f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/cable/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ def url_for_version(self, version):
default=True,
description="Build MPI executable.",
)

variant(
"library",
default=False,
description="Build CABLE science library object.",
)

variant(
"build_type",
default="Release",
Expand All @@ -42,4 +49,5 @@ def url_for_version(self, version):
def cmake_args(self):
args = []
args.append(self.define_from_variant("CABLE_MPI", "mpi"))
args.append(self.define_from_variant("CABLE_LIBRARY", "library"))
return args

0 comments on commit 3e44b5f

Please sign in to comment.