From 80c59512ea66534456f62cffbd35f440a97b7bf7 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 6 Jan 2025 19:36:23 +0100 Subject: Get rid of (hopefully) the last 'native' dir separators. --- src/task.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/task.cc') diff --git a/src/task.cc b/src/task.cc index a9c0fee..cd03fce 100644 --- a/src/task.cc +++ b/src/task.cc @@ -3,7 +3,6 @@ // See accompanying file LICENSE for details. #include "task.h" -#include #include #include #include @@ -46,10 +45,12 @@ int Task::registerDepTasks(const std::vector>& tasks) bool Task::operator==(const std::string& depStr) { + std::filesystem::path generated_output = sourceDir; + generated_output /= target(); return name() == depStr || target() == depStr || - sourceDir + "/" + target() == depStr || + generated_output == depStr || targetFile().string() == depStr ; } -- cgit v1.2.3