Eclipse: Fix paths in target links on cygwin

Add a missing GetEclipsePath call to fix generation of incorrect paths
for target links in Eclipse CDT generator which caused Eclipse to be
unable to open files through such links.  Without this the generator
would generate invalid links for source files under "[Targets]", making
Eclipse unable to open them.  The old links looked like
"C:/cygdrive/c/...", while new links correctly are "C:/...".
This commit is contained in:
Markus Grech 2015-07-08 18:20:58 +02:00 committed by Brad King
parent c66d232c9c
commit a672b16a3a
1 changed files with 2 additions and 1 deletions

View File

@ -598,7 +598,8 @@ void cmExtraEclipseCDT4Generator::CreateLinksForTargets(
linkName4 += "/";
linkName4 += cmSystemTools::GetFilenameName(fullPath);
this->AppendLinkedResource(fout, linkName4,
fullPath, LinkToFile);
this->GetEclipsePath(fullPath),
LinkToFile);
}
}
}