summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r--Source/cmCacheManager.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
index a8ea49a..5392937 100644
--- a/Source/cmCacheManager.cxx
+++ b/Source/cmCacheManager.cxx
@@ -563,9 +563,11 @@ bool cmCacheManager::IsAdvanced(const char* key)
{
std::string advancedVar = key;
advancedVar += "-ADVANCED";
- if(cmCacheManager::GetInstance()->GetCacheEntry(advancedVar.c_str()))
+ const char* value =
+ cmCacheManager::GetInstance()->GetCacheValue(advancedVar.c_str());
+ if(value)
{
- return true;
+ return cmSystemTools::IsOn(value);
}
return false;
}