diff options
author | Brad King <brad.king@kitware.com> | 2014-08-13 18:07:07 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-08-13 18:08:39 (GMT) |
commit | 9633d112794e1bb6b08ab6de0c20baca3a8c5847 (patch) | |
tree | 7388cd8aad982c1416cf7657f72fc36f09c0ab55 /Source/cmIDEOptions.cxx | |
parent | 841001028a579bea093482fc3c1beb5d45f2b2d6 (diff) | |
download | CMake-9633d112794e1bb6b08ab6de0c20baca3a8c5847.zip CMake-9633d112794e1bb6b08ab6de0c20baca3a8c5847.tar.gz CMake-9633d112794e1bb6b08ab6de0c20baca3a8c5847.tar.bz2 |
cmIDEOptions: Add HasFlag method to test if a flag is set
Diffstat (limited to 'Source/cmIDEOptions.cxx')
-rw-r--r-- | Source/cmIDEOptions.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmIDEOptions.cxx b/Source/cmIDEOptions.cxx index e9980cf..0eb903d 100644 --- a/Source/cmIDEOptions.cxx +++ b/Source/cmIDEOptions.cxx @@ -217,6 +217,12 @@ void cmIDEOptions::RemoveFlag(const char* flag) } //---------------------------------------------------------------------------- +bool cmIDEOptions::HasFlag(std::string const& flag) const +{ + return this->FlagMap.find(flag) != this->FlagMap.end(); +} + +//---------------------------------------------------------------------------- const char* cmIDEOptions::GetFlag(const char* flag) { // This method works only for single-valued flags! |