Merge topic 'no-export-cmake-version'
c376c5bc
Do not place CMake version in export files
This commit is contained in:
commit
de1f409844
|
@ -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";
|
||||
|
|
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue