summaryrefslogtreecommitdiffstats
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorMichael Scott <michael.scott250@gmail.com>2015-11-29 12:39:03 (GMT)
committerBrad King <brad.king@kitware.com>2015-12-01 14:40:43 (GMT)
commit07388f83b69739116c8364e9443f10158fcdc912 (patch)
treeecd6ab97971a063dabd853908754874d5f3baa0b /Source/cmake.h
parent246b0bfbfda9a8f3091fc34fc92816aebaf60ae9 (diff)
downloadCMake-07388f83b69739116c8364e9443f10158fcdc912.zip
CMake-07388f83b69739116c8364e9443f10158fcdc912.tar.gz
CMake-07388f83b69739116c8364e9443f10158fcdc912.tar.bz2
Refactor the -W options parser to be generic.
Refactor the -Wdev and -Wno-dev options parser to use a generic -W parser that follows the GCC pattern, excluding support for -Werror=TYPE and -Wno-error=TYPE formats for now.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index 45ac28e..1bd6d4d 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -68,6 +68,11 @@ class cmake
DEPRECATION_WARNING
};
+ enum DiagLevel
+ {
+ DIAG_IGNORE,
+ DIAG_WARN
+ };
/** \brief Describes the working modes of cmake */
enum WorkingMode
@@ -303,11 +308,7 @@ class cmake
std::string const& GetCMakeEditCommand() const
{ return this->CMakeEditCommand; }
- void SetSuppressDevWarnings(bool v)
- {
- this->SuppressDevWarnings = v;
- this->DoSuppressDevWarnings = true;
- }
+ void SetSuppressDevWarnings(bool v);
/*
* Get the state of the suppression of developer (author) warnings.
* Returns false, by default, if developer warnings should be shown, true
@@ -359,8 +360,7 @@ protected:
cmGlobalGenerator *GlobalGenerator;
cmCacheManager *CacheManager;
- bool SuppressDevWarnings;
- bool DoSuppressDevWarnings;
+ std::map<std::string, DiagLevel> DiagLevels;
std::string GeneratorPlatform;
std::string GeneratorToolset;