X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcsourcefile.cpp;h=b0346e46cd01d94dc5d57ef01daf2823f8bb37cb;hb=a116ad9af4a6a75093f6e1c3603d16b397833154;hp=3c3aad935f965e7c039ad68bbe3d7419afb832f6;hpb=6f76342d14c7b7ec7b9629fcfd40199bca1e5e0f;p=builder.git diff --git a/source/csourcefile.cpp b/source/csourcefile.cpp index 3c3aad9..b0346e4 100644 --- a/source/csourcefile.cpp +++ b/source/csourcefile.cpp @@ -19,7 +19,7 @@ CSourceFile::CSourceFile(Builder &b, const Component &c, const FS::Path &p): { string ext = FS::extpart(FS::basename(path)); if(ext==".h" || ext==".H" || ext==".hpp") - install_location = FS::Path("include")/component->get_name(); + install_location = FS::Path("include")/package->get_name(); } void CSourceFile::find_depends() @@ -57,6 +57,6 @@ void CSourceFile::find_depends() { Target *hdr = builder.get_vfs().find_header(i->substr(1), ((*i)[0]=='"' ? local_incpath : incpath)); if(hdr) - add_depend(hdr); + add_depend(*hdr); } }