aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2022-08-15 23:27:27 -0400
committerNirbheek Chauhan <nirbheek@centricular.com>2022-09-02 13:40:05 +0530
commit8144b3324c0f9ac8b84126dc9d6d06a8ed87fbed (patch)
tree729e5a858abbd5c6eaaef45adbfa552d2ac28cd1
parent0e0dbf7e35f1e368090682bfd4818589d3c64d6e (diff)
downloadmeson-8144b3324c0f9ac8b84126dc9d6d06a8ed87fbed.zip
meson-8144b3324c0f9ac8b84126dc9d6d06a8ed87fbed.tar.gz
meson-8144b3324c0f9ac8b84126dc9d6d06a8ed87fbed.tar.bz2
make add_project_dependencies respect build version of include dirs
Fixes #10695
-rw-r--r--mesonbuild/interpreter/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index 686f9a9..6cd5441 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -2730,7 +2730,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)