Eclipse: don't create VirtualFolders if not supported
Eclipse versions before 3.6 (Helios) did not support VirtualFolders yet (#12479), so only create them if Eclipse is new enough. Alex
This commit is contained in:
parent
5b200e3bed
commit
b4b2fc33f9
|
@ -420,6 +420,8 @@ void cmExtraEclipseCDT4Generator::CreateProjectFile()
|
|||
|
||||
}
|
||||
|
||||
if (this->SupportsVirtualFolders)
|
||||
{
|
||||
// for each sub project create a linked resource to the source dir
|
||||
// - only if it is an out-of-source build
|
||||
this->AppendLinkedResource(fout, "[Subprojects]",
|
||||
|
@ -445,6 +447,7 @@ void cmExtraEclipseCDT4Generator::CreateProjectFile()
|
|||
this->SrcLinkedResources.push_back(it->first);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// I'm not sure this makes too much sense. There can be different
|
||||
// output directories in different subdirs, so we would need more of them.
|
||||
|
|
Loading…
Reference in New Issue