From 312aa38263b5e014b04a9055f842e83d876af6ea Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 25 Dec 2025 18:24:30 +0100 Subject: 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. --- src/task_fn.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/task_fn.cc') 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() -- cgit v1.2.3