Xcode: only add source and build dirs if implicit_include_directories is set.
@@ -1450,6 +1450,7 @@ class XCodeBackend(backends.Backend):
header_arr = PbxArray()
unquoted_headers = []
unquoted_headers.append(self.get_target_private_dir_abs(target))
+ 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:
