mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-26 18:58:34 -06:00
check bool values and prefere off
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user