diff options
-rw-r--r-- | Source/cmIDEOptions.cxx | 7 | ||||
-rw-r--r-- | Source/cmIDEOptions.h | 1 |
2 files changed, 8 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); diff --git a/Source/cmIDEOptions.h b/Source/cmIDEOptions.h index 313c003..9b60f80 100644 --- a/Source/cmIDEOptions.h +++ b/Source/cmIDEOptions.h @@ -30,6 +30,7 @@ public: void AddDefines(const std::vector<std::string> &defines); void AddFlag(const char* flag, const char* value); void AddFlag(const char* flag, std::vector<std::string> const& value); + void AppendFlag(std::string const& flag, std::string const& value); void RemoveFlag(const char* flag); const char* GetFlag(const char* flag); |