diff options
author | Marcel Breyer <marcel.breyer@ipvs.uni-stuttgart.de> | 2024-06-20 13:59:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 05:59:53 -0600 |
commit | ffdab20294c27dff65964a85ea5e0ee96b87dedb (patch) | |
tree | 04563459cee2a3cbfcd3cd459231d81171e987af | |
parent | e91a69a7564dfe54718541954607d89c086caf12 (diff) | |
download | spack-ffdab20294c27dff65964a85ea5e0ee96b87dedb.tar.gz spack-ffdab20294c27dff65964a85ea5e0ee96b87dedb.tar.bz2 spack-ffdab20294c27dff65964a85ea5e0ee96b87dedb.tar.xz spack-ffdab20294c27dff65964a85ea5e0ee96b87dedb.zip |
googletest: fix checking a variant condition (#44781)
Change "pthread" to "+pthread" since otherwise the spec is never satisfied and pthread is never used.
-rw-r--r-- | var/spack/repos/builtin/packages/googletest/package.py | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |