Only add src_include_dir if it has been defined.

This commit is contained in:
Jussi Pakkanen 2016-11-13 16:35:44 -05:00
parent 8b05990c13
commit c23c822196
1 changed files with 2 additions and 1 deletions

View File

@ -755,7 +755,8 @@ class GTestDependency(Dependency):
arr = []
if self.include_dir != '/usr/include':
arr.append('-I' + self.include_dir)
arr.append('-I' + self.src_include_dir)
if hasattr(self, 'src_include_dir'):
arr.append('-I' + self.src_include_dir)
return arr
def get_link_args(self):