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:
@@ -290,6 +290,7 @@ bool cmExportInstallFileGenerator::GenerateImportFileConfig(
|
|||||||
cmSystemTools::Error(e.str());
|
cmSystemTools::Error(e.str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
exportFileStream.SetCopyIfDifferent(true);
|
||||||
std::ostream& os = exportFileStream;
|
std::ostream& os = exportFileStream;
|
||||||
|
|
||||||
// Start with the import file header.
|
// Start with the import file header.
|
||||||
|
Reference in New Issue
Block a user