mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
Eclipse: Skip generator expressions in COMPILE_DEFINITIONS (#14722)
This is a hot-fix for the bug. It seems like a good idea to generally reform the generator to care about targets instead of directories, but this patch at least makes the reported error go away.
This commit is contained in:
parent
1cc3e9f2e7
commit
311c0b9897
@ -841,11 +841,16 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const
|
||||
{
|
||||
// Expand the list.
|
||||
std::vector<std::string> defs;
|
||||
cmSystemTools::ExpandListArgument(cdefs, defs);
|
||||
cmGeneratorExpression::Split(cdefs, defs);
|
||||
|
||||
for(std::vector<std::string>::const_iterator di = defs.begin();
|
||||
di != defs.end(); ++di)
|
||||
{
|
||||
if (cmGeneratorExpression::Find(*di) != std::string::npos)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
std::string::size_type equals = di->find('=', 0);
|
||||
std::string::size_type enddef = di->length();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user