From 3a282890bcb03da8cba7071d23f8e42bf313a32f Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 30 Sep 2013 18:29:25 +0300 Subject: [PATCH] Minor gtest detector fix. --- dependencies.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):