summaryrefslogtreecommitdiff
path: root/src/task_fn.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2025-12-25 18:24:30 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2025-12-28 11:38:38 +0100
commit3294ff2f9b7aa92b6dccc653c590ce27fa434f8c (patch)
treed66268d34e9654877ae95bc0f769b8424bc4480c /src/task_fn.cc
parent3091c5b12717a44a67962b9e245b2de8069a7cf5 (diff)
Decorate sources as 'generated' to make sure they inject a dependency to their generators, and look for the sources in the build folder instead of the source folder.develop
Diffstat (limited to 'src/task_fn.cc')
-rw-r--r--src/task_fn.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/task_fn.cc b/src/task_fn.cc
index b6b50ea..ebfdac6 100644
--- a/src/task_fn.cc
+++ b/src/task_fn.cc
@@ -24,6 +24,7 @@ TaskFn::TaskFn(const ctor::build_configuration& config_, const ctor::settings& s
target_type = config.type;
source_language = source.language;
+ std::filesystem::path base = sourceFile.parent_path();
if(source.output.empty())
{
@@ -31,7 +32,7 @@ TaskFn::TaskFn(const ctor::build_configuration& config_, const ctor::settings& s
exit(1);
}
- _targetFile = source.output;
+ _targetFile = base / source.output;
}
bool TaskFn::dirtyInner()