Add an AppendDefines std::string overload.

This makes it easier to use with cmGeneratorTarget::GetCompileDefinitions.
This commit is contained in:
Stephen Kelly 2012-09-20 23:24:20 +02:00
parent 9a160871d0
commit b7e48e0acb
1 changed files with 5 additions and 0 deletions

View File

@ -157,6 +157,11 @@ public:
*/ */
void AppendDefines(std::set<std::string>& defines, void AppendDefines(std::set<std::string>& defines,
const char* defines_list); const char* defines_list);
void AppendDefines(std::set<std::string>& defines,
std::string defines_list)
{
this->AppendDefines(defines, defines_list.c_str());
}
/** /**
* Join a set of defines into a definesString with a space separator. * Join a set of defines into a definesString with a space separator.
*/ */