Community
Participate
Working Groups
Build Identifier: M20090917-0800 When using the template engine on windows/cygwin, org.eclipse.cdt.managedbuilder.templateengine.processes.CreateIncludeFolder has a problem whereby it can end up calling setIncludePathOptionForConfig() with paths that have backslashes in them. These backslashes end up in the makefiles, which cause make to fail. The bad path is set via this line: String path = projectHandle.getFolder(targetPath).getLocation().toOSString(); Changing it to the following, fixes the problem (as the paths are quoted, and more usefully relative the project directory, rather than being absolute) String path = "\"${workspace_loc:" + projectHandle.getFolder(targetPath).getFullPath().toString() + "}\""; Reproducible: Always
Can you submit your proposal in a form of a patch? You can create a patch via project context menu->Team->Create Patch. Use "Workspace" in Patch Root option.
Created attachment 209129 [details] Jon's Patch
I did some testing of this fix and it seems to work pretty fine. It would probably be better if this include folder was relative to project, not workspace location, but this is definitely better than absolute path. Added bonus is that added quotes also fix bug #225810. --- As I can't create patch the proposed way in eGit. I'm hope what I'm attaching is usable.
Created attachment 209691 [details] patch
Comment on attachment 209691 [details] patch I hope this new attachment is in proper format.