summaryrefslogtreecommitdiffstats
path: root/Source/cmCacheManager.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r--Source/cmCacheManager.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx
index bc2f0a7..2424526 100644
--- a/Source/cmCacheManager.cxx
+++ b/Source/cmCacheManager.cxx
@@ -190,8 +190,7 @@ bool cmCacheManager::IsOn(const char* key) const
return false;
}
const std::string &v = m_Cache.find(key)->second.m_Value;
- return (v == "ON" || v == "on" || v == "1" || v == "true" || v == "yev"
- || v == "TRUE" || v == "True" || v == "y" || v == "Y");
+ return cmSystemTools::IsOn(v.c_str());
}