summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-14 16:17:35 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-14 16:17:35 (GMT)
commite9fa7fa8401c8cc2b7b6a11585c4156df693c66e (patch)
tree6d60707caddf9f6caec6611904febbf832705561
parent6f96bba66d4cf600258a57561a54d0aaf798942d (diff)
downloadCMake-e9fa7fa8401c8cc2b7b6a11585c4156df693c66e.zip
CMake-e9fa7fa8401c8cc2b7b6a11585c4156df693c66e.tar.gz
CMake-e9fa7fa8401c8cc2b7b6a11585c4156df693c66e.tar.bz2
ENH: Report which cmake was used to generate the cache in the comment
-rw-r--r--Source/cmCacheManager.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
index cbd3697..ece2084 100644
--- a/Source/cmCacheManager.cxx
+++ b/Source/cmCacheManager.cxx
@@ -364,8 +364,14 @@ bool cmCacheManager::SaveCache(const char* path)
" was created", cmCacheManager::INTERNAL);
fout << "# This is the CMakeCache file.\n"
- << "# For build in directory: " << currentcwd << "\n"
- << "# You can edit this file to change values found and used by cmake.\n"
+ << "# For build in directory: " << currentcwd << "\n";
+ cmCacheManager::CacheEntry* cmakeCacheEntry = this->GetCacheEntry("CMAKE_COMMAND");
+ if ( cmakeCacheEntry )
+ {
+ fout << "# It was generated by CMake: " << cmakeCacheEntry->m_Value << std::endl;
+ }
+
+ fout << "# You can edit this file to change values found and used by cmake.\n"
<< "# If you do not want to change any of the values, simply exit the editor.\n"
<< "# If you do want to change a value, simply edit, save, and exit the editor.\n"
<< "# The syntax for the file is as follows:\n"