cmIDEOptions: Add an AppendFlag overload to append multiple values
This commit is contained in:
parent
5891b36640
commit
841001028a
|
@ -202,6 +202,14 @@ void cmIDEOptions::AppendFlag(std::string const& flag,
|
||||||
this->FlagMap[flag].push_back(value);
|
this->FlagMap[flag].push_back(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//----------------------------------------------------------------------------
|
||||||
|
void cmIDEOptions::AppendFlag(std::string const& flag,
|
||||||
|
std::vector<std::string> const& value)
|
||||||
|
{
|
||||||
|
FlagValue& fv = this->FlagMap[flag];
|
||||||
|
std::copy(value.begin(), value.end(), std::back_inserter(fv));
|
||||||
|
}
|
||||||
|
|
||||||
//----------------------------------------------------------------------------
|
//----------------------------------------------------------------------------
|
||||||
void cmIDEOptions::RemoveFlag(const char* flag)
|
void cmIDEOptions::RemoveFlag(const char* flag)
|
||||||
{
|
{
|
||||||
|
|
|
@ -31,6 +31,8 @@ public:
|
||||||
void AddFlag(const char* flag, const char* value);
|
void AddFlag(const char* flag, const char* value);
|
||||||
void AddFlag(const char* flag, std::vector<std::string> const& value);
|
void AddFlag(const char* flag, std::vector<std::string> const& value);
|
||||||
void AppendFlag(std::string const& flag, std::string const& value);
|
void AppendFlag(std::string const& flag, std::string const& value);
|
||||||
|
void AppendFlag(std::string const& flag,
|
||||||
|
std::vector<std::string> const& value);
|
||||||
void RemoveFlag(const char* flag);
|
void RemoveFlag(const char* flag);
|
||||||
const char* GetFlag(const char* flag);
|
const char* GetFlag(const char* flag);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue