From ffdab20294c27dff65964a85ea5e0ee96b87dedb Mon Sep 17 00:00:00 2001 From: Marcel Breyer Date: Thu, 20 Jun 2024 13:59:53 +0200 Subject: googletest: fix checking a variant condition (#44781) Change "pthread" to "+pthread" since otherwise the spec is never satisfied and pthread is never used. --- var/spack/repos/builtin/packages/googletest/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'var') diff --git a/var/spack/repos/builtin/packages/googletest/package.py b/var/spack/repos/builtin/packages/googletest/package.py index 4c523fd41b..79b4c3c357 100644 --- a/var/spack/repos/builtin/packages/googletest/package.py +++ b/var/spack/repos/builtin/packages/googletest/package.py @@ -47,7 +47,7 @@ class Googletest(CMakePackage): self.define_from_variant("BUILD_SHARED_LIBS", "shared"), self.define_from_variant("CMAKE_CXX_STANDARD", "cxxstd"), ] - args.append(self.define("gtest_disable_pthreads", not spec.satisfies("pthreads"))) + args.append(self.define("gtest_disable_pthreads", not spec.satisfies("+pthreads"))) if spec.satisfies("@1.8:"): # New style (contains both Google Mock and Google Test) args.append(self.define("BUILD_GTEST", True)) -- cgit v1.2.3-70-g09d2