summaryrefslogtreecommitdiffstats
path: root/Source/cmakewizard.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-02-28 20:57:45 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-02-28 20:57:45 (GMT)
commitd14a2314e596d2eb1ef9a4c265e12505b9f36d11 (patch)
treee3f2903f3c17c5697d6d2fda18e5c65f73047b8c /Source/cmakewizard.cxx
parent96db7986279c65c5e07afee432f49532a8590d57 (diff)
downloadCMake-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.cxx7
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
{