summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-06-06 16:17:10 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-07-10 10:59:20 (GMT)
commitd95651e15abbe6dcb771b776dfc69a1412dd0400 (patch)
treec6f2ead7e6526f1e2daa35d6b98b23607fd4475c /Source
parenta18e9586dbd7172911fde22b6b6331676b817e4d (diff)
downloadCMake-d95651e15abbe6dcb771b776dfc69a1412dd0400.zip
CMake-d95651e15abbe6dcb771b776dfc69a1412dd0400.tar.gz
CMake-d95651e15abbe6dcb771b776dfc69a1412dd0400.tar.bz2
Overload cmLocalGenerator::AppendDefines to add a list.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalGenerator.cxx6
-rw-r--r--Source/cmLocalGenerator.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 00846d5..70d7d16 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2301,7 +2301,13 @@ void cmLocalGenerator::AppendDefines(std::set<std::string>& defines,
// Expand the list of definitions.
std::vector<std::string> defines_vec;
cmSystemTools::ExpandListArgument(defines_list, defines_vec);
+ this->AppendDefines(defines, defines_vec);
+}
+//----------------------------------------------------------------------------
+void cmLocalGenerator::AppendDefines(std::set<std::string>& defines,
+ const std::vector<std::string> &defines_vec)
+{
for(std::vector<std::string>::const_iterator di = defines_vec.begin();
di != defines_vec.end(); ++di)
{
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
index f35ef8e..f5cd7fd 100644
--- a/Source/cmLocalGenerator.h
+++ b/Source/cmLocalGenerator.h
@@ -166,6 +166,9 @@ public:
{
this->AppendDefines(defines, defines_list.c_str());
}
+ void AppendDefines(std::set<std::string>& defines,
+ const std::vector<std::string> &defines_vec);
+
/**
* Join a set of defines into a definesString with a space separator.
*/