Merge topic 'FixEclipseCorruptProjects'

22f7934 Eclipse: fix #14204 and #14205: no file links to directories
This commit is contained in:
Brad King 2013-06-14 09:01:17 -04:00 committed by CMake Topic Stage
commit 1f8733a0c2

View File

@ -554,12 +554,15 @@ void cmExtraEclipseCDT4Generator::CreateLinksForTargets(
fileIt != sFiles.end(); fileIt != sFiles.end();
++fileIt) ++fileIt)
{ {
std::string fullPath = (*fileIt)->GetFullPath();
if (!cmSystemTools::FileIsDirectory(fullPath.c_str()))
{
std::string linkName4 = linkName3; std::string linkName4 = linkName3;
linkName4 += "/"; linkName4 += "/";
linkName4 += linkName4 += cmSystemTools::GetFilenameName(fullPath);
cmSystemTools::GetFilenameName((*fileIt)->GetFullPath());
this->AppendLinkedResource(fout, linkName4, this->AppendLinkedResource(fout, linkName4,
(*fileIt)->GetFullPath(), LinkToFile); fullPath, LinkToFile);
}
} }
} }
} }