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:
Cristian Adam
2024-06-27 17:03:36 +02:00
parent af7382fee8
commit b5d6348b67

View File

@@ -1488,6 +1488,11 @@ void CMakeBuildSystem::updateFallbackProjectData()
Tr::tr("Scan \"%1\" project tree")
.arg(project()->displayName()),
"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)