summaryrefslogtreecommitdiff
path: root/src/task_so.cc
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-21 12:50:43 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-21 12:50:43 +0100
commite4ccfe780f52cdb6c0764074effcd60235d33762 (patch)
treecf23adbd17d9bada3fa470a84c541acf84f56737 /src/task_so.cc
parentabaf47c7b8fec08803d7b2deab3a4f13c2dfcb29 (diff)
Make sure to create target directories as they appear in their actual (cleaned) form.
Diffstat (limited to 'src/task_so.cc')
-rw-r--r--src/task_so.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/task_so.cc b/src/task_so.cc
index e99205d..54f9c05 100644
--- a/src/task_so.cc
+++ b/src/task_so.cc
@@ -22,7 +22,6 @@ TaskSO::TaskSO(const ctor::build_configuration& config,
, sourceDir(sourceDir)
{
std::filesystem::path base = sourceDir;
- std::filesystem::create_directories(std::filesystem::path(settings.builddir) / base);
target_type = ctor::target_type::dynamic_library;
_targetFile = base / target;
@@ -53,6 +52,8 @@ TaskSO::TaskSO(const ctor::build_configuration& config,
source_language = ctor::language::cpp;
}
}
+
+ std::filesystem::create_directories(targetFile().parent_path());
}
bool TaskSO::dirtyInner()