diff options
author | Brad King <brad.king@kitware.com> | 2014-07-31 18:02:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-31 18:08:39 (GMT) |
commit | 29410df23d4783de9d90a6d8c24cf7c9c5aacc80 (patch) | |
tree | 871332bfcc4a3d54f15ee84eb2e73f70dae4c7e4 /Source/cmIDEOptions.cxx | |
parent | 0a5fe2793a385034d3a676d2dc4cef3122e9bbea (diff) | |
download | CMake-29410df23d4783de9d90a6d8c24cf7c9c5aacc80.zip CMake-29410df23d4783de9d90a6d8c24cf7c9c5aacc80.tar.gz CMake-29410df23d4783de9d90a6d8c24cf7c9c5aacc80.tar.bz2 |
cmIDEOptions: Add an AppendFlag method to update multi-valued options
Diffstat (limited to 'Source/cmIDEOptions.cxx')
-rw-r--r-- | Source/cmIDEOptions.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmIDEOptions.cxx b/Source/cmIDEOptions.cxx index dfbece7..72bd593 100644 --- a/Source/cmIDEOptions.cxx +++ b/Source/cmIDEOptions.cxx @@ -196,6 +196,13 @@ void cmIDEOptions::AddFlag(const char* flag, } //---------------------------------------------------------------------------- +void cmIDEOptions::AppendFlag(std::string const& flag, + std::string const& value) +{ + this->FlagMap[flag].push_back(value); +} + +//---------------------------------------------------------------------------- void cmIDEOptions::RemoveFlag(const char* flag) { this->FlagMap.erase(flag); |