1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 19:08:07 +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:
Brad King
2020-12-11 12:27:42 -05:00
parent 0334a3c68f
commit 63db7ae9c4

View File

@@ -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