}
const StringList &incpath = comp->get_build_info().incpath;
+ StringList local_incpath = incpath;
+ local_incpath.push_front(FS::dirname(path).str());
- FS::Path dir = FS::dirname(path);
for(list<string>::iterator i=includes.begin(); i!=includes.end(); ++i)
{
- Target *hdr = builder.get_vfs().find_header(*i, dir, incpath);
+ Target *hdr = builder.get_vfs().find_header(i->substr(1), ((*i)[0]=='"' ? local_incpath : incpath));
if(hdr)
add_depend(hdr);
}