Skip to content

Commit

Permalink
Merge pull request #413 from lanl/github-bot/update_spackages
Browse files Browse the repository at this point in the history
Update spackages
  • Loading branch information
Yurlungur authored Sep 3, 2024
2 parents a0e544f + 09f8f14 commit 8ea5994
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spack-repo/packages/ports-of-call/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,15 @@ class PortsOfCall(CMakePackage):
default="None",
when="@:1.2.0",
)
variant("test", default=False, description="Build tests")

depends_on("cmake@3.12:")
depends_on("catch2@3.0.1:", when"+test")

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

0 comments on commit 8ea5994

Please sign in to comment.