diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2021-01-18 22:02:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-19 14:59:19 (GMT) |
commit | 51acae534a504d5cc3acf06ef1a9557b118b039a (patch) | |
tree | 883f63c6a757ace649958905987a36f3a682cc03 /Source | |
parent | 8a132eca8aa9842b70cafa35cac97974ae5a01a5 (diff) | |
download | CMake-51acae534a504d5cc3acf06ef1a9557b118b039a.zip CMake-51acae534a504d5cc3acf06ef1a9557b118b039a.tar.gz CMake-51acae534a504d5cc3acf06ef1a9557b118b039a.tar.bz2 |
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.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmExportInstallFileGenerator.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmExportInstallFileGenerator.cxx b/Source/cmExportInstallFileGenerator.cxx index 0b9b183..3c69c50 100644 --- a/Source/cmExportInstallFileGenerator.cxx +++ b/Source/cmExportInstallFileGenerator.cxx @@ -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. |