summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r--Source/cmCacheManager.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
index a5300b9..c3af5e4 100644
--- a/Source/cmCacheManager.cxx
+++ b/Source/cmCacheManager.cxx
@@ -524,3 +524,13 @@ void cmCacheManager::AddCacheEntry(const char* key, bool v,
}
}
+bool cmCacheManager::IsAdvanced(const char* key)
+{
+ std::string advancedVar = key;
+ advancedVar += "-ADVANCED";
+ if(cmCacheManager::GetInstance()->GetCacheEntry(advancedVar.c_str()))
+ {
+ return true;
+ }
+ return false;
+}