From 25159d9a853e5361e9fa767130f6acfd488e09ba Mon Sep 17 00:00:00 2001 From: himselfv Date: Fri, 10 Jun 2022 12:22:46 +0300 Subject: [PATCH] Fix wildcard dependencies with absolute paths --- src/jomlib/parser.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/jomlib/parser.cpp b/src/jomlib/parser.cpp index b7b5353..1c29cb4 100644 --- a/src/jomlib/parser.cpp +++ b/src/jomlib/parser.cpp @@ -360,7 +360,10 @@ static QStringList expandWildcards(const QString &dirPath, const QStringList &ls str = QDir::fromNativeSeparators(str); int idx = str.lastIndexOf(QLatin1Char('/')); if (idx != -1) { - path += QLatin1Char('/') + str.left(idx); + if (QDir(str).isRelative()) + path += QLatin1Char('/') + str.left(idx); + else + path = str.left(idx); str.remove(0, idx + 1); } -- 2.32.0.windows.2