浏览代码

Merge topic 'install-properties' into release-3.19

63db7ae9c4 cmake: Clear INSTALL file properties between runs

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5603
Brad King 4 年之前
父节点
当前提交
4cdf951f07
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Source/cmake.cxx

+ 2 - 0
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