Переглянути джерело

check bool values and prefere off

Bill Hoffman 24 роки тому
батько
коміт
d14a2314e5
1 змінених файлів з 7 додано та 0 видалено
  1. 7 0
      Source/cmakewizard.cxx

+ 7 - 0
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
       {