From 05f84cb09138684eedddc96485cd51574b4709bb Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sun, 27 Apr 2008 07:01:05 -0400 Subject: [PATCH] ENH: write the cmake version into the file created by EXPORT_LIBRARY_DEPENDENCIES() to help with debugging later on. The same should be done in the import target files (but I didn't have time to do it yet). STYLE: fix line length in cmListFileCache.cxx Alex --- Source/cmExportLibraryDependencies.cxx | 2 ++ Source/cmListFileCache.cxx | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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;