From e73ee708292aac55070701ff0157db4eab6c06f4 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 27 Sep 2021 21:32:17 +0200 Subject: Add folder hierarchy in build folder corresponding to that of the source folders and store build-files in corresponding locations. --- src/task_cc.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/task_cc.cc') diff --git a/src/task_cc.cc b/src/task_cc.cc index eb361cb..dfda75d 100644 --- a/src/task_cc.cc +++ b/src/task_cc.cc @@ -129,6 +129,9 @@ TaskCC::TaskCC(const BuildConfiguration& config, const Settings& settings, sourceFile /= source.file; std::filesystem::path base = settings.builddir; + base /= sourceFile.parent_path(); + std::filesystem::create_directories(base); + base /= config.target; base += "-"; base += sourceFile.stem(); -- cgit v1.2.3