From 70bc593afeb3ab6750cdd75d9e0799284c85f16f Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 10 Oct 2001 10:22:50 -0400 Subject: [PATCH] ENH: add a warning comment for cache values that can not be changed because they are always loaded from another cache --- Source/cmCacheManager.cxx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index 3adb3c8db..58729059d 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -177,7 +177,12 @@ bool cmCacheManager::LoadCache(const char* path, // not visible in the gui if (!internal) { - e.m_Type = INTERNAL; + e.m_HelpString = "DO NOT EDIT, "; + e.m_HelpString += entryKey; + e.m_HelpString += " loaded from external file. " + "To change this value edit this file: "; + e.m_HelpString += path; + e.m_HelpString += "/CMakeCache.txt" ; } e.m_Value = regQuoted.match(3); m_Cache[entryKey] = e; @@ -204,6 +209,12 @@ bool cmCacheManager::LoadCache(const char* path, if (!internal) { e.m_Type = INTERNAL; + e.m_HelpString = "DO NOT EDIT, "; + e.m_HelpString += entryKey; + e.m_HelpString += " loaded from external file. " + "To change this value edit this file: "; + e.m_HelpString += path; + e.m_HelpString += "/CMakeCache.txt"; } e.m_Value = reg.match(3); m_Cache[entryKey] = e;