From 63db7ae9c40a806494dc81b9ae2940fe91a6aad7 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 11 Dec 2020 12:27:42 -0500 Subject: 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 --- Source/cmake.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 60a493c..e655634 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -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 -- cgit v0.12