check bool values and prefere off

This commit is contained in:
Bill Hoffman 2002-02-28 15:57:45 -05:00
parent 96db798627
commit d14a2314e5

View File

@ -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
{