Add an overload of cmIDEOptions::AddDefines taking a vector of strings.
This commit is contained in:
parent
d95651e15a
commit
afc9243c32
|
@ -165,6 +165,11 @@ void cmIDEOptions::AddDefines(const char* defines)
|
|||
cmSystemTools::ExpandListArgument(defines, this->Defines);
|
||||
}
|
||||
}
|
||||
//----------------------------------------------------------------------------
|
||||
void cmIDEOptions::AddDefines(const std::vector<std::string> &defines)
|
||||
{
|
||||
this->Defines.insert(this->Defines.end(), defines.begin(), defines.end());
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
void cmIDEOptions::AddFlag(const char* flag, const char* value)
|
||||
|
|
|
@ -27,6 +27,7 @@ public:
|
|||
// Store definitions and flags.
|
||||
void AddDefine(const std::string& define);
|
||||
void AddDefines(const char* defines);
|
||||
void AddDefines(const std::vector<std::string> &defines);
|
||||
void AddFlag(const char* flag, const char* value);
|
||||
void RemoveFlag(const char* flag);
|
||||
const char* GetFlag(const char* flag);
|
||||
|
|
Loading…
Reference in New Issue