summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
authorGeoffrey Cross <geoff@cross.lu>2001-05-11 18:49:46 (GMT)
committerGeoffrey Cross <geoff@cross.lu>2001-05-11 18:49:46 (GMT)
commit9f036244b716a68d69fadce36d6a1e6631fde937 (patch)
tree5b643a7c6fcb5f2d29bb317ec7fd2280507cdbb2 /Source/cmCacheManager.cxx
parent72a9a5546f7fa4ab09c6db6208faf8bcdea81730 (diff)
downloadCMake-9f036244b716a68d69fadce36d6a1e6631fde937.zip
CMake-9f036244b716a68d69fadce36d6a1e6631fde937.tar.gz
CMake-9f036244b716a68d69fadce36d6a1e6631fde937.tar.bz2
Cache file is a bit prettier
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r--Source/cmCacheManager.cxx14
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
index 224ca77..ac2a3b4 100644
--- a/Source/cmCacheManager.cxx
+++ b/Source/cmCacheManager.cxx
@@ -194,6 +194,11 @@ bool cmCacheManager::SaveCache(const char* path) const
<< "# TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!.\n"
<< "# VALUE is the current value for the KEY.\n\n";
+ fout << "########################\n";
+ fout << "# EXTERNAL cache entries\n";
+ fout << "########################\n";
+ fout << "\n";
+
for( std::map<std::string, CacheEntry>::const_iterator i = m_Cache.begin();
i != m_Cache.end(); ++i)
{
@@ -205,9 +210,16 @@ bool cmCacheManager::SaveCache(const char* path) const
cmCacheManager::OutputHelpString(fout, ce.m_HelpString);
fout << (*i).first.c_str() << ":"
<< cmCacheManagerTypes[t] << "="
- << ce.m_Value << "\n";
+ << ce.m_Value << "\n\n";
}
}
+
+ fout << "\n";
+ fout << "########################\n";
+ fout << "# INTERNAL cache entries\n";
+ fout << "########################\n";
+ fout << "\n";
+
for( std::map<std::string, CacheEntry>::const_iterator i = m_Cache.begin();
i != m_Cache.end(); ++i)
{