mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-15 03:48:02 +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->State->RemoveUserDefinedCommands();
|
||||
this->CurrentSnapshot.SetDefaultDefinitions();
|
||||
// FIXME: InstalledFiles probably belongs in the global generator.
|
||||
this->InstalledFiles.clear();
|
||||
}
|
||||
|
||||
#ifndef CMAKE_BOOTSTRAP
|
||||
|
Reference in New Issue
Block a user