Browse Source

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.
Daan De Meyer 4 years ago
parent
commit
51acae534a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Source/cmExportInstallFileGenerator.cxx

+ 1 - 0
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.