mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-15 20:46:37 +08:00
cmake: Clear INSTALL file properties between runs
Do not keep state across separate project configurations. This is particularly important in `cmake-gui` where those configurations can be for separate projects. Fixes: #21580
This commit is contained in:
@@ -286,6 +286,8 @@ void cmake::CleanupCommandsAndMacros()
|
|||||||
this->CurrentSnapshot = this->State->Reset();
|
this->CurrentSnapshot = this->State->Reset();
|
||||||
this->State->RemoveUserDefinedCommands();
|
this->State->RemoveUserDefinedCommands();
|
||||||
this->CurrentSnapshot.SetDefaultDefinitions();
|
this->CurrentSnapshot.SetDefaultDefinitions();
|
||||||
|
// FIXME: InstalledFiles probably belongs in the global generator.
|
||||||
|
this->InstalledFiles.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef CMAKE_BOOTSTRAP
|
#ifndef CMAKE_BOOTSTRAP
|
||||||
|
Reference in New Issue
Block a user