diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-04-26 14:49:12 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-04-26 14:49:12 (GMT) |
commit | 6e5af0e6ccbb0f2c0a4aec00003ea0ce68ea2f95 (patch) | |
tree | f680c0e8c3f843514e620ceeeb09e0391653e4b7 /Source/cmCacheManager.cxx | |
parent | 30ad61805bbb5b34e2bf17cb36ce2e9601ed0f25 (diff) | |
download | CMake-6e5af0e6ccbb0f2c0a4aec00003ea0ce68ea2f95.zip CMake-6e5af0e6ccbb0f2c0a4aec00003ea0ce68ea2f95.tar.gz CMake-6e5af0e6ccbb0f2c0a4aec00003ea0ce68ea2f95.tar.bz2 |
some fixes for If commands
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 3 |
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()); } |