diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-04-27 11:01:05 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-04-27 11:01:05 (GMT) |
commit | 05f84cb09138684eedddc96485cd51574b4709bb (patch) | |
tree | 3d29deb27bdf2fe040f740a5da00b0fe7efcddb6 /Source/cmExportLibraryDependencies.cxx | |
parent | 231fb3756c1f5a2ad59867ea92cca9cde642e60c (diff) | |
download | CMake-05f84cb09138684eedddc96485cd51574b4709bb.zip CMake-05f84cb09138684eedddc96485cd51574b4709bb.tar.gz CMake-05f84cb09138684eedddc96485cd51574b4709bb.tar.bz2 |
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
Diffstat (limited to 'Source/cmExportLibraryDependencies.cxx')
-rw-r--r-- | Source/cmExportLibraryDependencies.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmExportLibraryDependencies.cxx b/Source/cmExportLibraryDependencies.cxx index cd36e06..87570d9 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 <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 |