summaryrefslogtreecommitdiffstats
path: root/Source/cmExportLibraryDependenciesCommand.cxx
diff options
context:
space:
mode:
authorChristoph GrĂ¼ninger <foss@grueninger.de>2016-07-10 13:35:24 (GMT)
committerBrad King <brad.king@kitware.com>2016-07-11 15:35:27 (GMT)
commitc376c5bca204a689b5bcfec88291b8bc7f226e7f (patch)
tree1c0436a4113e019661f4f765220657360eae9e80 /Source/cmExportLibraryDependenciesCommand.cxx
parent507aa256e517e33aa109b854b444b08863447cf4 (diff)
downloadCMake-c376c5bca204a689b5bcfec88291b8bc7f226e7f.zip
CMake-c376c5bca204a689b5bcfec88291b8bc7f226e7f.tar.gz
CMake-c376c5bca204a689b5bcfec88291b8bc7f226e7f.tar.bz2
Do not place CMake version in export files
Files generated by `install(EXPORT)` and `export_library_dependencies()` may be installed with packages and consumed by dependents. In order to avoid re-building dependents only because the version of CMake changed, drop the CMake version from the export file content.
Diffstat (limited to 'Source/cmExportLibraryDependenciesCommand.cxx')
-rw-r--r--Source/cmExportLibraryDependenciesCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExportLibraryDependenciesCommand.cxx b/Source/cmExportLibraryDependenciesCommand.cxx
index c8272cb..b422a2c 100644
--- a/Source/cmExportLibraryDependenciesCommand.cxx
+++ b/Source/cmExportLibraryDependenciesCommand.cxx
@@ -152,7 +152,7 @@ void cmExportLibraryDependenciesCommand::ConstFinalPass() const
// versions.
const char* vertest =
"\"${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}\" GREATER 2.4";
- fout << "# Generated by CMake " << cmVersion::GetCMakeVersion() << "\n\n";
+ fout << "# Generated by CMake\n\n";
fout << "if(" << vertest << ")\n";
fout << " # Information for CMake 2.6 and above.\n";
for (std::map<std::string, std::string>::const_iterator i =