Minor gtest detector fix.

This commit is contained in:
Jussi Pakkanen 2013-09-30 18:29:25 +03:00
parent 8d9b3063d3
commit 3a282890bc
1 changed files with 2 additions and 1 deletions

View File

@ -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):