1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-14 02:08:27 +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:
Daan De Meyer
2021-01-18 22:02:45 +00:00
committed by Brad King
parent 8a132eca8a
commit 51acae534a

View File

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