Merge topic 'eclipse-hotfix'
311c0b98 Eclipse: Skip generator expressions in COMPILE_DEFINITIONS (#14722)
This commit is contained in:
commit
e44bbec013
@ -841,11 +841,16 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const
|
|||||||
{
|
{
|
||||||
// Expand the list.
|
// Expand the list.
|
||||||
std::vector<std::string> defs;
|
std::vector<std::string> defs;
|
||||||
cmSystemTools::ExpandListArgument(cdefs, defs);
|
cmGeneratorExpression::Split(cdefs, defs);
|
||||||
|
|
||||||
for(std::vector<std::string>::const_iterator di = defs.begin();
|
for(std::vector<std::string>::const_iterator di = defs.begin();
|
||||||
di != defs.end(); ++di)
|
di != defs.end(); ++di)
|
||||||
{
|
{
|
||||||
|
if (cmGeneratorExpression::Find(*di) != std::string::npos)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
std::string::size_type equals = di->find('=', 0);
|
std::string::size_type equals = di->find('=', 0);
|
||||||
std::string::size_type enddef = di->length();
|
std::string::size_type enddef = di->length();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user