summaryrefslogtreecommitdiffstats
path: root/Source/cmIDEOptions.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-07-10 13:22:59 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-07-10 13:53:53 (GMT)
commitafc9243c325c37ac7364af12a10adffd7dd81d25 (patch)
tree3990b3f026b7006f0462eb3e60f9df060f498233 /Source/cmIDEOptions.cxx
parentd95651e15abbe6dcb771b776dfc69a1412dd0400 (diff)
downloadCMake-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/cmIDEOptions.cxx')
-rw-r--r--Source/cmIDEOptions.cxx5
1 files changed, 5 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)