summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorone <wangan.cs@gmail.com>2024-04-15 23:18:27 +0800
committerGitHub <noreply@github.com>2024-04-15 11:18:27 -0400
commit35ff24ddea48cd02205935ae72f85e711437f949 (patch)
treea845cea591b87770233a5cbf279586334c912b6c /var
parent7019e4e3cbebd6ff887e7da7bef89f186e713908 (diff)
downloadspack-35ff24ddea48cd02205935ae72f85e711437f949.tar.gz
spack-35ff24ddea48cd02205935ae72f85e711437f949.tar.bz2
spack-35ff24ddea48cd02205935ae72f85e711437f949.tar.xz
spack-35ff24ddea48cd02205935ae72f85e711437f949.zip
googletest: fix reversed pthreads variant logic (#43649)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/googletest/package.py2
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 f1b1424f73..4c523fd41b 100644
--- a/var/spack/repos/builtin/packages/googletest/package.py
+++ b/var/spack/repos/builtin/packages/googletest/package.py
@@ -44,10 +44,10 @@ class Googletest(CMakePackage):
def cmake_args(self):
spec = self.spec
args = [
- self.define_from_variant("gtest_disable_pthreads", "pthreads"),
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")))
if spec.satisfies("@1.8:"):
# New style (contains both Google Mock and Google Test)
args.append(self.define("BUILD_GTEST", True))