summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-12 03:01:41 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-12 03:01:41 (GMT)
commite365c33766dbdeda7e16f3c5c2f887ae1df93099 (patch)
tree8de57951274f5c5ec7fa2e37e54cf35972e70b5d /Source
parentf15026cff691d149ec62667a74e3af80d0393648 (diff)
downloadCMake-e365c33766dbdeda7e16f3c5c2f887ae1df93099.zip
CMake-e365c33766dbdeda7e16f3c5c2f887ae1df93099.tar.gz
CMake-e365c33766dbdeda7e16f3c5c2f887ae1df93099.tar.bz2
ENH: fix dumb MS warning about BOOL and performance with more code
Diffstat (limited to 'Source')
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index ad967c6..68086f6 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(