mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-13 17:47:49 +08:00
install(EXPORT): Set copy-if-different on install export config files
Avoid reinstalling the per-config export install files if the contents didn't change after a configure.
This commit is contained in:
@@ -290,6 +290,7 @@ bool cmExportInstallFileGenerator::GenerateImportFileConfig(
|
||||
cmSystemTools::Error(e.str());
|
||||
return false;
|
||||
}
|
||||
exportFileStream.SetCopyIfDifferent(true);
|
||||
std::ostream& os = exportFileStream;
|
||||
|
||||
// Start with the import file header.
|
||||
|
Reference in New Issue
Block a user