Skip to content

Commit

Permalink
Merge pull request #98 from lanl/github-bot/update_spackages
Browse files Browse the repository at this point in the history
Update spackages
  • Loading branch information
rbberger authored Sep 5, 2024
2 parents 035c599 + 412dff0 commit 686e2ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spack-repo/packages/ports-of-call/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,22 @@ class PortsOfCall(CMakePackage):
when="@:1.2.0",
)
variant("test", default=False, description="Build tests")
variant(
"test_portability_strategy",
description="Portability strategy used by tests",
values=("Kokkos", "Cuda", "None"),
multi=False,
default="None",
when="@1.6.1: +test",
)

depends_on("[email protected]:")
depends_on("[email protected]:", when="+test")

def cmake_args(self):
args = [
self.define_from_variant("PORTS_OF_CALL_BUILD_TESTING", "test"),
self.define_from_variant("PORTS_OF_CALL_TEST_PORTABILITY_STRATEGY", "test_portability_strategy"),
]
if self.spec.satisfies("@:1.2.0"):
args.append(self.define_from_variant("PORTABILITY_STRATEGY", "portability_strategy"))
Expand Down

0 comments on commit 686e2ba

Please sign in to comment.