If a source file name is empty, or if it is a directory, don't create a linked resource to it. Alex
This commit is contained in:
parent
a2021e578c
commit
22f7934a6e
|
@ -554,12 +554,15 @@ void cmExtraEclipseCDT4Generator::CreateLinksForTargets(
|
|||
fileIt != sFiles.end();
|
||||
++fileIt)
|
||||
{
|
||||
std::string linkName4 = linkName3;
|
||||
linkName4 += "/";
|
||||
linkName4 +=
|
||||
cmSystemTools::GetFilenameName((*fileIt)->GetFullPath());
|
||||
this->AppendLinkedResource(fout, linkName4,
|
||||
(*fileIt)->GetFullPath(), LinkToFile);
|
||||
std::string fullPath = (*fileIt)->GetFullPath();
|
||||
if (!cmSystemTools::FileIsDirectory(fullPath.c_str()))
|
||||
{
|
||||
std::string linkName4 = linkName3;
|
||||
linkName4 += "/";
|
||||
linkName4 += cmSystemTools::GetFilenameName(fullPath);
|
||||
this->AppendLinkedResource(fout, linkName4,
|
||||
fullPath, LinkToFile);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue