summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/QCMake.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-12 02:51:56 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-12 02:51:56 (GMT)
commit420725077cc9326d5b8c610f2770994a177eed15 (patch)
tree955bf582c6b9d25475b1c98a98a0ba49b587f2d9 /Source/QtDialog/QCMake.cxx
parentfc26c1459caa61c79b9076e3ca85905e45bbcbc9 (diff)
downloadCMake-420725077cc9326d5b8c610f2770994a177eed15.zip
CMake-420725077cc9326d5b8c610f2770994a177eed15.tar.gz
CMake-420725077cc9326d5b8c610f2770994a177eed15.tar.bz2
ENH: add ability to suppress dev warnings to gui code
Diffstat (limited to 'Source/QtDialog/QCMake.cxx')
-rw-r--r--Source/QtDialog/QCMake.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/QtDialog/QCMake.cxx b/Source/QtDialog/QCMake.cxx
index 4f4ce37..43db641 100644
--- a/Source/QtDialog/QCMake.cxx
+++ b/Source/QtDialog/QCMake.cxx
@@ -28,6 +28,7 @@
QCMake::QCMake(QObject* p)
: QObject(p)
{
+ this->SuppressDevWarnings = false;
qRegisterMetaType<QCMakeCacheProperty>();
qRegisterMetaType<QCMakeCachePropertyList>();
@@ -107,6 +108,7 @@ void QCMake::setBinaryDirectory(const QString& dir)
"Please check the permissions of the directory you are trying to run CMake on.");
}
}
+
QCMakeCachePropertyList props = this->properties();
emit this->propertiesChanged(props);
cmCacheManager::CacheIterator itm = cachem->NewIterator();
@@ -143,6 +145,7 @@ void QCMake::configure()
this->CMakeInstance->SetGlobalGenerator(
this->CMakeInstance->CreateGlobalGenerator(this->Generator.toAscii().data()));
this->CMakeInstance->LoadCache();
+ this->CMakeInstance->SetSuppressDevWarnings(this->SuppressDevWarnings);
this->CMakeInstance->PreLoadCMakeFiles();
cmSystemTools::ResetErrorOccuredFlag();
@@ -360,3 +363,7 @@ void QCMake::reloadCache()
emit this->propertiesChanged(props);
}
+void QCMake::SetSuppressDevWarnings(bool value)
+{
+ this->SuppressDevWarnings = value;
+}