diff --git a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx index 170a37d46..6b47c2c0c 100644 --- a/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx +++ b/Source/FLTKDialog/CMakeSetupGUIImplementation.cxx @@ -428,7 +428,7 @@ CMakeSetupGUIImplementation switch(value.m_Type ) { case cmCacheManager::BOOL: - if(cmCacheManager::GetInstance()->IsOn(key)) + if(cmSystemTools::IsOn(value.m_Value.c_str())) { m_CacheEntriesList.AddProperty(key, "ON",