Only add src_include_dir if it has been defined.

pull/1080/head
Jussi Pakkanen 8 years ago
parent 8b05990c13
commit c23c822196
  1. 3
      mesonbuild/dependencies.py

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

Loading…
Cancel
Save