aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-07-31 11:35:25 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2017-08-05 00:26:13 +0300
commit61a05f26e391d2381414dd9bf8dd3c9e69ad732b (patch)
treee124ace883a9a54d5ff3b183ea94c372345bc2f3 /mesonbuild/backend/ninjabackend.py
parenta800c96f99485341f52c6dacf60a2b63aa1c0b1a (diff)
downloadmeson-61a05f26e391d2381414dd9bf8dd3c9e69ad732b.zip
meson-61a05f26e391d2381414dd9bf8dd3c9e69ad732b.tar.gz
meson-61a05f26e391d2381414dd9bf8dd3c9e69ad732b.tar.bz2
Add option to disable implicit include directories. Closes #2139.
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index f477a2b..2b292b1 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -2046,9 +2046,11 @@ rule FORTRAN_DEP_HACK
# srcdir == builddir Autotools build in their source tree. Many
# projects that are moving to Meson have both Meson and Autotools in
# parallel as part of the transition.
- commands += self.get_source_dir_include_args(target, compiler)
+ if target.implicit_include_directories:
+ commands += self.get_source_dir_include_args(target, compiler)
commands += self.get_custom_target_dir_include_args(target, compiler)
- commands += self.get_build_dir_include_args(target, compiler)
+ if target.implicit_include_directories:
+ commands += self.get_build_dir_include_args(target, compiler)
# Finally add the private dir for the target to the include path. This
# must override everything else and must be the final path added.
commands += compiler.get_include_args(self.get_target_private_dir(target), False)