Overload cmLocalGenerator::AppendDefines to add a list.
This commit is contained in:
parent
a18e9586db
commit
d95651e15a
@ -2301,7 +2301,13 @@ void cmLocalGenerator::AppendDefines(std::set<std::string>& defines,
|
|||||||
// Expand the list of definitions.
|
// Expand the list of definitions.
|
||||||
std::vector<std::string> defines_vec;
|
std::vector<std::string> defines_vec;
|
||||||
cmSystemTools::ExpandListArgument(defines_list, 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();
|
for(std::vector<std::string>::const_iterator di = defines_vec.begin();
|
||||||
di != defines_vec.end(); ++di)
|
di != defines_vec.end(); ++di)
|
||||||
{
|
{
|
||||||
|
@ -166,6 +166,9 @@ public:
|
|||||||
{
|
{
|
||||||
this->AppendDefines(defines, defines_list.c_str());
|
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.
|
* Join a set of defines into a definesString with a space separator.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user