forked from qt-creator/qt-creator
CMake: Replace parseCMakeCacheDotTxt() function
... by direct use of CMakeConfig::fromFile(). It was only duplicating checks that are done on the user side already. Change-Id: Iaf5e89c924c2b0a9080db9fe160970bbf6e33154 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -304,7 +304,7 @@ QList<void *> CMakeProjectImporter::examineDirectory(const FilePath &importPath,
|
||||
}
|
||||
|
||||
QString errorMessage;
|
||||
const CMakeConfig config = CMakeBuildSystem::parseCMakeCacheDotTxt(cacheFile, &errorMessage);
|
||||
const CMakeConfig config = CMakeConfig::fromFile(cacheFile, &errorMessage);
|
||||
if (config.isEmpty() || !errorMessage.isEmpty()) {
|
||||
qCDebug(cmInputLog) << "Failed to read configuration from" << cacheFile << errorMessage;
|
||||
return { };
|
||||
|
||||
Reference in New Issue
Block a user