diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-10-10 14:22:50 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-10-10 14:22:50 (GMT) |
commit | 70bc593afeb3ab6750cdd75d9e0799284c85f16f (patch) | |
tree | dcab0ced1872f305b0bf2eb3c64b23e367f9d811 /Source/cmCacheManager.cxx | |
parent | ad09f66469c89f39817c0fe3fc0347ec13c50d9c (diff) | |
download | CMake-70bc593afeb3ab6750cdd75d9e0799284c85f16f.zip CMake-70bc593afeb3ab6750cdd75d9e0799284c85f16f.tar.gz CMake-70bc593afeb3ab6750cdd75d9e0799284c85f16f.tar.bz2 |
ENH: add a warning comment for cache values that can not be changed because they are always loaded from another cache
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index 3adb3c8..5872905 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; |