From d4ec0da49acab19621bd113a1acb7054eae04869 Mon Sep 17 00:00:00 2001 From: "Mark W. Krentel" Date: Mon, 12 Sep 2022 01:35:37 -0500 Subject: hpctoolkit: add yaml-cpp as dependency for develop (#32538) --- var/spack/repos/builtin/packages/hpctoolkit/package.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/hpctoolkit/package.py b/var/spack/repos/builtin/packages/hpctoolkit/package.py index 659e24d1b5..00abd1d09e 100644 --- a/var/spack/repos/builtin/packages/hpctoolkit/package.py +++ b/var/spack/repos/builtin/packages/hpctoolkit/package.py @@ -49,7 +49,7 @@ class Hpctoolkit(AutotoolsPackage): variant( "cray", 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.") @@ -67,7 +67,7 @@ class Hpctoolkit(AutotoolsPackage): variant( "all-static", 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( @@ -120,6 +120,7 @@ class Hpctoolkit(AutotoolsPackage): depends_on("mbedtls+pic", when="@:2022.03") depends_on("xerces-c transcoder=iconv") depends_on("xz+pic", type="link") + depends_on("yaml-cpp@0.7.0:", when="@develop") depends_on("zlib+shared") depends_on("cuda", when="+cuda") @@ -215,6 +216,9 @@ class Hpctoolkit(AutotoolsPackage): else: 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: args.append("--with-cuda=%s" % spec["cuda"].prefix) -- cgit v1.2.3-60-g2f50