aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-04-22 18:11:20 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2021-04-23 17:29:29 +0300
commit7fba94997fd3f724ed19afb6e6ba5d5947f3c35b (patch)
tree2f20514b07ecd7359b36b5ff2ddd8eb0534d5198
parentfde305e3598dcb878b423d0340e1e174e1b9ac55 (diff)
downloadmeson-7fba94997fd3f724ed19afb6e6ba5d5947f3c35b.zip
meson-7fba94997fd3f724ed19afb6e6ba5d5947f3c35b.tar.gz
meson-7fba94997fd3f724ed19afb6e6ba5d5947f3c35b.tar.bz2
Xcode: only add source and build dirs if implicit_include_directories is set.
-rw-r--r--mesonbuild/backend/xcodebackend.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/mesonbuild/backend/xcodebackend.py b/mesonbuild/backend/xcodebackend.py
index dff0cfb..f2f933c 100644
--- a/mesonbuild/backend/xcodebackend.py
+++ b/mesonbuild/backend/xcodebackend.py
@@ -1450,8 +1450,9 @@ class XCodeBackend(backends.Backend):
header_arr = PbxArray()
unquoted_headers = []
unquoted_headers.append(self.get_target_private_dir_abs(target))
- unquoted_headers.append(os.path.join(self.environment.get_build_dir(), target.get_subdir()))
- unquoted_headers.append(os.path.join(self.environment.get_source_dir(), target.get_subdir()))
+ if target.implicit_include_directories:
+ unquoted_headers.append(os.path.join(self.environment.get_build_dir(), target.get_subdir()))
+ unquoted_headers.append(os.path.join(self.environment.get_source_dir(), target.get_subdir()))
if headerdirs:
for i in headerdirs:
i = os.path.normpath(i)