[Cmake-commits] [cmake-commits] hoffman committed cmMakefile.cxx 1.456 1.457 cmake.cxx 1.367 1.368 cmakemain.cxx 1.78 1.79
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Mar 11 15:18:00 EDT 2008
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv14450
Modified Files:
cmMakefile.cxx cmake.cxx cmakemain.cxx
Log Message:
ENH: add a way to suppress the new policy warnings, still need ccmake and gui's
Index: cmakemain.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmakemain.cxx,v
retrieving revision 1.78
retrieving revision 1.79
diff -C 2 -d -r1.78 -r1.79
*** cmakemain.cxx 4 Mar 2008 14:16:33 -0000 1.78
--- cmakemain.cxx 11 Mar 2008 19:17:58 -0000 1.79
***************
*** 82,85 ****
--- 82,91 ----
"advanced variables. If H is specified, it will also display help for "
"each variable."},
+ {"-Wno-dev", "Suppress developer warnings.",
+ "Suppress warnings that are meant for the author"
+ " of the CMakeLists.txt files."},
+ {"-Wdev", "Enable developer warnings.",
+ "Enable warnings that are meant for the author"
+ " of the CMakeLists.txt files."},
{"-N", "View mode only.",
"Only load the cache. Do not actually run configure and generate steps."},
Index: cmake.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmake.cxx,v
retrieving revision 1.367
retrieving revision 1.368
diff -C 2 -d -r1.367 -r1.368
*** cmake.cxx 7 Mar 2008 21:36:57 -0000 1.367
--- cmake.cxx 11 Mar 2008 19:17:58 -0000 1.368
***************
*** 374,377 ****
--- 374,394 ----
}
}
+ 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)
{
Index: cmMakefile.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmMakefile.cxx,v
retrieving revision 1.456
retrieving revision 1.457
diff -C 2 -d -r1.456 -r1.457
*** cmMakefile.cxx 11 Mar 2008 14:29:54 -0000 1.456
--- cmMakefile.cxx 11 Mar 2008 19:17:58 -0000 1.457
***************
*** 297,301 ****
else
{
! msg << "CMake Warning:";
}
--- 297,310 ----
else
{
! msg << "CMake Warning";
! if(t == cmake::AUTHOR_WARNING)
! {
! if(this->IsOn("CMAKE_SUPPRESS_DEVELOPER_WARNINGS"))
! {
! return;
! }
! msg << "(Code)";
! }
! msg << ":";
}
***************
*** 2463,2467 ****
gg->EnableLanguagesFromGenerator
(this->LocalGenerator->GetGlobalGenerator());
!
if (cm.Configure() != 0)
{
--- 2472,2485 ----
gg->EnableLanguagesFromGenerator
(this->LocalGenerator->GetGlobalGenerator());
! if(this->IsOn("CMAKE_SUPPRESS_DEVELOPER_WARNINGS"))
! {
! cm.AddCacheEntry("CMAKE_SUPPRESS_DEVELOPER_WARNINGS",
! "TRUE", "", cmCacheManager::INTERNAL);
! }
! else
! {
! cm.AddCacheEntry("CMAKE_SUPPRESS_DEVELOPER_WARNINGS",
! "FALSE", "", cmCacheManager::INTERNAL);
! }
if (cm.Configure() != 0)
{
More information about the Cmake-commits
mailing list