make add_project_dependencies respect build version of include dirs

Fixes #10695
pull/10696/head
Eli Schwartz 2 years ago
parent d141b85462
commit 33a5352e3c
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      mesonbuild/interpreter/interpreter.py

@ -2753,7 +2753,7 @@ class Interpreter(InterpreterBase, HoldableObject):
for i in d.get_include_dirs():
for lang in kwargs['language']:
comp = self.coredata.compilers[for_machine][lang]
for idir in i.to_string_list(self.environment.get_source_dir()):
for idir in i.to_string_list(self.environment.get_source_dir(), self.environment.get_build_dir()):
compile_args.extend(comp.get_include_args(idir, system_incdir))
self._add_project_arguments(node, self.build.projects_args[for_machine], compile_args, kwargs)

Loading…
Cancel
Save