diff --git a/Source/cmExportLibraryDependencies.cxx b/Source/cmExportLibraryDependencies.cxx index cd36e0647..87570d95a 100644 --- a/Source/cmExportLibraryDependencies.cxx +++ b/Source/cmExportLibraryDependencies.cxx @@ -19,6 +19,7 @@ #include "cmLocalGenerator.h" #include "cmGeneratedFileStream.h" #include "cmake.h" +#include "cmVersion.h" #include @@ -172,6 +173,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 << "IF(" << vertest << ")\n"; fout << " # Information for CMake 2.6 and above.\n"; for(std::map::const_iterator diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index c7383eafe..a11ab9836 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -134,7 +134,8 @@ bool cmListFile::ParseFile(const char* filename, break; } } - // if no policy command is found this is an error if they use any non advanced functions or a lot of functions + // if no policy command is found this is an error if they use any + // non advanced functions or a lot of functions if(!hasVersion) { bool isProblem = true;