forked from qt-creator/qt-creator
CMakePM: Update initial CMake variables also on failed CMake runs
A failed CMake run configuration could be the result of an compiler update which then would cause CMake to fail. Make sure to offer an upgrade path to the new Kit compiler values. Change-Id: Ibabeb853259e23fe012d8b00e3d48979deee61a5 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
This commit is contained in:
@@ -1488,6 +1488,11 @@ void CMakeBuildSystem::updateFallbackProjectData()
|
|||||||
Tr::tr("Scan \"%1\" project tree")
|
Tr::tr("Scan \"%1\" project tree")
|
||||||
.arg(project()->displayName()),
|
.arg(project()->displayName()),
|
||||||
"CMake.Scan.Tree");
|
"CMake.Scan.Tree");
|
||||||
|
|
||||||
|
// A failed configuration could be the result of an compiler update
|
||||||
|
// which then would cause CMake to fail. Make sure to offer an upgrade path
|
||||||
|
// to the new Kit compiler values.
|
||||||
|
updateInitialCMakeExpandableVars();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMakeBuildSystem::updateCMakeConfiguration(QString &errorMessage)
|
void CMakeBuildSystem::updateCMakeConfiguration(QString &errorMessage)
|
||||||
|
Reference in New Issue
Block a user