diff options
author | Brad King <brad.king@kitware.com> | 2016-07-13 13:26:50 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-07-13 13:26:50 (GMT) |
commit | de1f4098442bc697bc49a78fe5b830cb43127f07 (patch) | |
tree | d25616339c97d2a217894cc99f9ca663bf0e06cb /Source | |
parent | 7f36d89595319f1fb800ddc688e50f5cf61b5ab8 (diff) | |
parent | c376c5bca204a689b5bcfec88291b8bc7f226e7f (diff) | |
download | CMake-de1f4098442bc697bc49a78fe5b830cb43127f07.zip CMake-de1f4098442bc697bc49a78fe5b830cb43127f07.tar.gz CMake-de1f4098442bc697bc49a78fe5b830cb43127f07.tar.bz2 |
Merge topic 'no-export-cmake-version'
c376c5bc Do not place CMake version in export files
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmExportFileGenerator.cxx | 2 | ||||
-rw-r--r-- | Source/cmExportLibraryDependenciesCommand.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExportFileGenerator.cxx b/Source/cmExportFileGenerator.cxx index d93e406..e00af5e 100644 --- a/Source/cmExportFileGenerator.cxx +++ b/Source/cmExportFileGenerator.cxx @@ -93,7 +93,7 @@ bool cmExportFileGenerator::GenerateImportFile() // Protect that file against use with older CMake versions. /* clang-format off */ - os << "# Generated by CMake " << cmVersion::GetCMakeVersion() << "\n\n"; + os << "# Generated by CMake\n\n"; os << "if(\"${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}\" LESS 2.5)\n" << " message(FATAL_ERROR \"CMake >= 2.6.0 required\")\n" << "endif()\n"; 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 = |