From d14a2314e596d2eb1ef9a4c265e12505b9f36d11 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 28 Feb 2002 15:57:45 -0500 Subject: [PATCH] check bool values and prefere off --- Source/cmakewizard.cxx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Source/cmakewizard.cxx b/Source/cmakewizard.cxx index c222f0b6e..8230aedea 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 {