const list<string> &includes=src->get_includes();
for(list<string>::const_iterator i=includes.begin(); i!=includes.end(); ++i)
{
- Target *hdr2=builder.get_header(*i, path, package->get_build_info().incpath);
+ Target *hdr2=builder.get_header(*i, path, comp.get_build_info().incpath);
if(hdr2 && !contains(depends, hdr2))
add_depend(hdr2);
}