From 22f4e9497d63c68286f3b6fe5055da56c2d7e055 Mon Sep 17 00:00:00 2001 From: David Schulz Date: Mon, 17 Jan 2022 13:17:42 +0100 Subject: [PATCH] CMake: Fix build dir scan filter Fixes: QTCREATORBUG-26846 Change-Id: I54f0249410cf0dd5cc6703767cea187a2d843868 Reviewed-by: hjk --- src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp b/src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp index 601ed3a1e70..bb00d0b05d2 100644 --- a/src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp +++ b/src/plugins/cmakeprojectmanager/cmakeprojectimporter.cpp @@ -79,7 +79,7 @@ static QStringList scanDirectory(const FilePath &path, const QString &prefix) QStringList result; qCDebug(cmInputLog) << "Scanning for directories matching" << prefix << "in" << path; - foreach (const FilePath &entry, path.dirEntries({prefix + ".*"}, QDir::Dirs | QDir::NoDotAndDotDot)) { + foreach (const FilePath &entry, path.dirEntries({prefix + "*"}, QDir::Dirs | QDir::NoDotAndDotDot)) { QTC_ASSERT(entry.isDir(), continue); result.append(entry.toString()); }