diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-07-10 13:22:59 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-07-10 13:53:53 (GMT) |
commit | afc9243c325c37ac7364af12a10adffd7dd81d25 (patch) | |
tree | 3990b3f026b7006f0462eb3e60f9df060f498233 /Source | |
parent | d95651e15abbe6dcb771b776dfc69a1412dd0400 (diff) | |
download | CMake-afc9243c325c37ac7364af12a10adffd7dd81d25.zip CMake-afc9243c325c37ac7364af12a10adffd7dd81d25.tar.gz CMake-afc9243c325c37ac7364af12a10adffd7dd81d25.tar.bz2 |
Add an overload of cmIDEOptions::AddDefines taking a vector of strings.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmIDEOptions.cxx | 5 | ||||
-rw-r--r-- | Source/cmIDEOptions.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmIDEOptions.cxx b/Source/cmIDEOptions.cxx index 76a60cf..34a9c7c 100644 --- a/Source/cmIDEOptions.cxx +++ b/Source/cmIDEOptions.cxx @@ -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) diff --git a/Source/cmIDEOptions.h b/Source/cmIDEOptions.h index e556bde..e78af3e 100644 --- a/Source/cmIDEOptions.h +++ b/Source/cmIDEOptions.h @@ -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); |