hpctoolkit: add yaml-cpp as dependency for develop (#32538)
This commit is contained in:
parent
2caf449b8b
commit
d4ec0da49a
@ -49,7 +49,7 @@ class Hpctoolkit(AutotoolsPackage):
|
|||||||
variant(
|
variant(
|
||||||
"cray",
|
"cray",
|
||||||
default=False,
|
default=False,
|
||||||
description="Build for Cray compute nodes, including " "hpcprof-mpi.",
|
description="Build for Cray compute nodes, including hpcprof-mpi.",
|
||||||
)
|
)
|
||||||
|
|
||||||
variant("mpi", default=False, description="Build hpcprof-mpi, the MPI version of hpcprof.")
|
variant("mpi", default=False, description="Build hpcprof-mpi, the MPI version of hpcprof.")
|
||||||
@ -67,7 +67,7 @@ class Hpctoolkit(AutotoolsPackage):
|
|||||||
variant(
|
variant(
|
||||||
"all-static",
|
"all-static",
|
||||||
default=False,
|
default=False,
|
||||||
description="Needed when MPICXX builds static binaries " "for the compute nodes.",
|
description="Needed when MPICXX builds static binaries for the compute nodes.",
|
||||||
)
|
)
|
||||||
|
|
||||||
variant(
|
variant(
|
||||||
@ -120,6 +120,7 @@ class Hpctoolkit(AutotoolsPackage):
|
|||||||
depends_on("mbedtls+pic", when="@:2022.03")
|
depends_on("mbedtls+pic", when="@:2022.03")
|
||||||
depends_on("xerces-c transcoder=iconv")
|
depends_on("xerces-c transcoder=iconv")
|
||||||
depends_on("xz+pic", type="link")
|
depends_on("xz+pic", type="link")
|
||||||
|
depends_on("yaml-cpp@0.7.0:", when="@develop")
|
||||||
depends_on("zlib+shared")
|
depends_on("zlib+shared")
|
||||||
|
|
||||||
depends_on("cuda", when="+cuda")
|
depends_on("cuda", when="+cuda")
|
||||||
@ -215,6 +216,9 @@ def configure_args(self):
|
|||||||
else:
|
else:
|
||||||
args.append("--with-perfmon=%s" % spec["libpfm4"].prefix)
|
args.append("--with-perfmon=%s" % spec["libpfm4"].prefix)
|
||||||
|
|
||||||
|
if spec.satisfies("@develop"):
|
||||||
|
args.append("--with-yaml-cpp=%s" % spec["yaml-cpp"].prefix)
|
||||||
|
|
||||||
if "+cuda" in spec:
|
if "+cuda" in spec:
|
||||||
args.append("--with-cuda=%s" % spec["cuda"].prefix)
|
args.append("--with-cuda=%s" % spec["cuda"].prefix)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user