ENH: add a warning comment for cache values that can not be changed because they are always loaded from another cache

This commit is contained in:
Bill Hoffman 2001-10-10 10:22:50 -04:00
parent ad09f66469
commit 70bc593afe
1 changed files with 12 additions and 1 deletions

View File

@ -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;