check bool values and prefere off
This commit is contained in:
parent
96db798627
commit
d14a2314e5
|
@ -45,6 +45,13 @@ void cmakewizard::AskUser(const char* key, cmCacheManager::CacheEntry & entry)
|
||||||
{
|
{
|
||||||
cmSystemTools::ConvertToUnixSlashes(entry->m_Value);
|
cmSystemTools::ConvertToUnixSlashes(entry->m_Value);
|
||||||
}
|
}
|
||||||
|
if(entry->m_Type == cmCacheManager::BOOL)
|
||||||
|
{
|
||||||
|
if(!cmSystemTools::IsOn(buffer))
|
||||||
|
{
|
||||||
|
entry->m_Value = "OFF";
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue