Skip to content

Commit 1213095

Browse files
github-actions[bot]rbberger
authored andcommitted
spack updates
1 parent 6301440 commit 1213095

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spack-repo/packages/ports-of-call/package.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,15 @@ class PortsOfCall(CMakePackage):
4141
default="None",
4242
when="@:1.2.0",
4343
)
44+
variant("test", default=False, description="Build tests")
4445

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

4749
def cmake_args(self):
48-
args = []
50+
args = [
51+
self.define_from_variant("PORTS_OF_CALL_BUILD_TESTING", "test"),
52+
]
4953
if self.spec.satisfies("@:1.2.0"):
5054
args.append(self.define_from_variant("PORTABILITY_STRATEGY", "portability_strategy"))
5155
return args

0 commit comments

Comments
 (0)