CMake: code cosmetics

Change-Id: Iebe736aa82bbd8f713d304d10fe6a30707b3adef
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tobias Hunger
2019-06-20 14:58:33 +02:00
parent 5bcd59c94f
commit 66a875ac53

View File

@@ -670,9 +670,7 @@ QStringList CMakeProject::filesGeneratedFrom(const QString &sourceFile) const
const FilePath cmakeListsTxt = baseDirectory.pathAppended("CMakeLists.txt"); const FilePath cmakeListsTxt = baseDirectory.pathAppended("CMakeLists.txt");
if (cmakeListsTxt.exists()) if (cmakeListsTxt.exists())
break; break;
QDir dir(baseDirectory.toString()); baseDirectory = baseDirectory.parentDir();
dir.cdUp();
baseDirectory = FilePath::fromString(dir.absolutePath());
} }
QDir srcDirRoot = QDir(project.toString()); QDir srcDirRoot = QDir(project.toString());