diff --git a/dependencies.py b/dependencies.py index b5b0a0ca7..fb8071853 100644 --- a/dependencies.py +++ b/dependencies.py @@ -306,7 +306,8 @@ class GTestDependency(Dependency): else: mlog.log('Dependency GTest found:', mlog.red('NO')) self.is_found = False - self.link_flags.append('-lpthread') + if self.is_found: + self.link_flags.append('-lpthread') return self.is_found def get_compile_flags(self):