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
This commit is contained in:
Alexander Neundorf 2008-04-27 07:01:05 -04:00
parent 231fb3756c
commit 05f84cb091
2 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,7 @@
#include "cmLocalGenerator.h"
#include "cmGeneratedFileStream.h"
#include "cmake.h"
#include "cmVersion.h"
#include <cmsys/auto_ptr.hxx>
@ -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<cmStdString, cmStdString>::const_iterator

View File

@ -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;