summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-03-11 19:17:58 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-03-11 19:17:58 (GMT)
commita547ff61cd42d45eb68cbc7fd62a0d1ec79749d8 (patch)
treebf40ce43d5317162ae02eed7abc3f1c16218a105 /Source/cmake.cxx
parent5d2b90097dda987fafb08f7e97a86cf9fab0225f (diff)
downloadCMake-a547ff61cd42d45eb68cbc7fd62a0d1ec79749d8.zip
CMake-a547ff61cd42d45eb68cbc7fd62a0d1ec79749d8.tar.gz
CMake-a547ff61cd42d45eb68cbc7fd62a0d1ec79749d8.tar.bz2
ENH: add a way to suppress the new policy warnings, still need ccmake and gui's
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 98aa0cd..f136b42 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -373,6 +373,23 @@ bool cmake::SetCacheArgs(const std::vector<std::string>& args)
return false;
}
}
+ else if(arg.find("-Wno-dev",0) == 0)
+ {
+ this->CacheManager->
+ AddCacheEntry("CMAKE_SUPPRESS_DEVELOPER_WARNINGS", "TRUE",
+ "Suppress Warnings that are meant for"
+ " the author of the CMakeLists.txt files.",
+ cmCacheManager::INTERNAL);
+ }
+ else if(arg.find("-Wdev",0) == 0)
+ {
+ this->CacheManager->
+ AddCacheEntry("CMAKE_SUPPRESS_DEVELOPER_WARNINGS", "FALSE",
+ "Suppress Warnings that are meant for"
+ " the author of the CMakeLists.txt files.",
+ cmCacheManager::INTERNAL);
+
+ }
else if(arg.find("-U",0) == 0)
{
std::string entryPattern = arg.substr(2);