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/tasks.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tasks.cc') diff --git a/src/tasks.cc b/src/tasks.cc index 94fe269..7de8af9 100644 --- a/src/tasks.cc +++ b/src/tasks.cc @@ -114,9 +114,9 @@ std::vector> taskFactory(const ctor::build_configuration& #ifndef BOOTSTRAP else { - for(const auto& file : config.sources) + for(const auto& source : config.sources) { - auto task = std::make_shared(config, settings, sourceDir, file); + auto task = std::make_shared(config, settings, sourceDir, source); tasks.push_back(task); objects.push_back(task->target()); } -- cgit v1.2.3