diff options
author | Markus Grech <markus.grech@gmail.com> | 2015-07-08 16:20:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-07-08 18:29:11 (GMT) |
commit | a672b16a3a528d6dbfcba7758a798eeb87bd57ee (patch) | |
tree | 910992e43bdd92ff3aa4b18bdae70fa2bd34f6b6 /Source/cmExtraEclipseCDT4Generator.cxx | |
parent | c66d232c9c138dcf54f5314aafb7ab32590b106d (diff) | |
download | CMake-a672b16a3a528d6dbfcba7758a798eeb87bd57ee.zip CMake-a672b16a3a528d6dbfcba7758a798eeb87bd57ee.tar.gz CMake-a672b16a3a528d6dbfcba7758a798eeb87bd57ee.tar.bz2 |
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:/...".
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.cxx')
-rw-r--r-- | Source/cmExtraEclipseCDT4Generator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx index a81e53c..44bf586 100644 --- a/Source/cmExtraEclipseCDT4Generator.cxx +++ b/Source/cmExtraEclipseCDT4Generator.cxx @@ -598,7 +598,8 @@ void cmExtraEclipseCDT4Generator::CreateLinksForTargets( linkName4 += "/"; linkName4 += cmSystemTools::GetFilenameName(fullPath); this->AppendLinkedResource(fout, linkName4, - fullPath, LinkToFile); + this->GetEclipsePath(fullPath), + LinkToFile); } } } |