From 9f036244b716a68d69fadce36d6a1e6631fde937 Mon Sep 17 00:00:00 2001 From: Geoffrey Cross Date: Fri, 11 May 2001 14:49:46 -0400 Subject: Cache file is a bit prettier --- Source/cmCacheManager.cxx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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::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::const_iterator i = m_Cache.begin(); i != m_Cache.end(); ++i) { -- cgit v0.12