From f0ccba185673773a4f5b4665a986fb6e67aa59fe Mon Sep 17 00:00:00 2001 From: Vaughn Kottler Date: Mon, 2 Oct 2023 02:53:57 -0500 Subject: [PATCH] Add include path for source dependencies --- yambs/dependency/handlers/yambs/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/yambs/dependency/handlers/yambs/__init__.py b/yambs/dependency/handlers/yambs/__init__.py index 35a6d1a..498c200 100644 --- a/yambs/dependency/handlers/yambs/__init__.py +++ b/yambs/dependency/handlers/yambs/__init__.py @@ -126,6 +126,9 @@ def yambs_handler(task: DependencyTask) -> DependencyState: if task.dep.as_source: task.source_dirs.add(src_include) + task.compile_flags.extend( + ["-iquote", str(rel(src_include, base=task.root.parent))] + ) # Check if loading the project configuration data is necessary. # Read the project's configuration data to find any nested dependencies.