From e365c33766dbdeda7e16f3c5c2f887ae1df93099 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 11 Mar 2008 23:01:41 -0400 Subject: [PATCH] ENH: fix dumb MS warning about BOOL and performance with more code --- Source/MFCDialog/CMakeSetupDialog.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp index ad967c6cc..68086f6c2 100644 --- a/Source/MFCDialog/CMakeSetupDialog.cpp +++ b/Source/MFCDialog/CMakeSetupDialog.cpp @@ -675,7 +675,14 @@ void CMakeSetupDialog::RunCMake(bool generateProjectFiles) m_CMakeInstance->CreateGlobalGenerator(m_GeneratorDialog.m_GeneratorChoiceString)); m_CMakeInstance->SetCMakeCommand(m_PathToExecutable); m_CMakeInstance->LoadCache(); - m_CMakeInstance->SetSuppressDevWarnings(m_SuppressDevValue); + if(m_SuppressDevValue) + { + m_CMakeInstance->SetSuppressDevWarnings(true); + } + else + { + m_CMakeInstance->SetSuppressDevWarnings(false); + } if(m_CMakeInstance->Configure() != 0) { cmSystemTools::Error(