diff options
author | Brad King <brad.king@kitware.com> | 2020-12-11 17:27:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-11 17:30:27 (GMT) |
commit | 63db7ae9c40a806494dc81b9ae2940fe91a6aad7 (patch) | |
tree | d8bb51f47382c789b61a258ed95c458005b219c0 /Source | |
parent | 0334a3c68f1064a7bb1f682d81f03e06f3608893 (diff) | |
download | CMake-63db7ae9c40a806494dc81b9ae2940fe91a6aad7.zip CMake-63db7ae9c40a806494dc81b9ae2940fe91a6aad7.tar.gz CMake-63db7ae9c40a806494dc81b9ae2940fe91a6aad7.tar.bz2 |
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
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmake.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
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 |