googletest: fix reversed pthreads variant logic (#43649)
This commit is contained in:
parent
7019e4e3cb
commit
35ff24ddea
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue