diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-28 20:57:45 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-02-28 20:57:45 (GMT) |
commit | d14a2314e596d2eb1ef9a4c265e12505b9f36d11 (patch) | |
tree | e3f2903f3c17c5697d6d2fda18e5c65f73047b8c /Source/cmakewizard.cxx | |
parent | 96db7986279c65c5e07afee432f49532a8590d57 (diff) | |
download | CMake-d14a2314e596d2eb1ef9a4c265e12505b9f36d11.zip CMake-d14a2314e596d2eb1ef9a4c265e12505b9f36d11.tar.gz CMake-d14a2314e596d2eb1ef9a4c265e12505b9f36d11.tar.bz2 |
check bool values and prefere off
Diffstat (limited to 'Source/cmakewizard.cxx')
-rw-r--r-- | Source/cmakewizard.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmakewizard.cxx b/Source/cmakewizard.cxx index c222f0b..8230aed 100644 --- a/Source/cmakewizard.cxx +++ b/Source/cmakewizard.cxx @@ -45,6 +45,13 @@ void cmakewizard::AskUser(const char* key, cmCacheManager::CacheEntry & entry) { cmSystemTools::ConvertToUnixSlashes(entry->m_Value); } + if(entry->m_Type == cmCacheManager::BOOL) + { + if(!cmSystemTools::IsOn(buffer)) + { + entry->m_Value = "OFF"; + } + } } else { |