Merge topic 'FixEclipseCorruptProjects'
22f7934 Eclipse: fix #14204 and #14205: no file links to directories
This commit is contained in:
commit
1f8733a0c2
@ -554,12 +554,15 @@ void cmExtraEclipseCDT4Generator::CreateLinksForTargets(
|
|||||||
fileIt != sFiles.end();
|
fileIt != sFiles.end();
|
||||||
++fileIt)
|
++fileIt)
|
||||||
{
|
{
|
||||||
std::string linkName4 = linkName3;
|
std::string fullPath = (*fileIt)->GetFullPath();
|
||||||
linkName4 += "/";
|
if (!cmSystemTools::FileIsDirectory(fullPath.c_str()))
|
||||||
linkName4 +=
|
{
|
||||||
cmSystemTools::GetFilenameName((*fileIt)->GetFullPath());
|
std::string linkName4 = linkName3;
|
||||||
this->AppendLinkedResource(fout, linkName4,
|
linkName4 += "/";
|
||||||
(*fileIt)->GetFullPath(), LinkToFile);
|
linkName4 += cmSystemTools::GetFilenameName(fullPath);
|
||||||
|
this->AppendLinkedResource(fout, linkName4,
|
||||||
|
fullPath, LinkToFile);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user