hpctoolkit: Add new test dependency and option (#46757)
Signed-off-by: Jonathon Anderson <anderson.jonathonm@gmail.com>
This commit is contained in:
parent
519684978b
commit
416943f7ed
@ -179,6 +179,7 @@ class Hpctoolkit(AutotoolsPackage, MesonPackage):
|
||||
depends_on("xz", type="link")
|
||||
depends_on("xz+pic libs=static", type="link", when="@:2023.08")
|
||||
depends_on("yaml-cpp@0.7.0: +shared", when="@2022.10:")
|
||||
depends_on("googletest@1.8.1: +gmock", type="test", when="@develop")
|
||||
|
||||
depends_on("zlib-api")
|
||||
depends_on("zlib+shared", when="^[virtuals=zlib-api] zlib")
|
||||
@ -409,6 +410,9 @@ def meson_args(self):
|
||||
"-Dgtpin=" + ("enabled" if spec.satisfies("+gtpin") else "disabled"),
|
||||
]
|
||||
|
||||
if spec.satisfies("@develop"):
|
||||
args.append("-Dtests=" + ("enabled" if self.pkg.run_tests else "disabled"))
|
||||
|
||||
if spec.satisfies("@:2024.01"):
|
||||
args.append(f"--native-file={self.gen_prefix_file()}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user