X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcsourcefile.cpp;h=b0346e46cd01d94dc5d57ef01daf2823f8bb37cb;hb=f2b26f1929a8209a746bcf4944165b0ba9ef303f;hp=824027890fa940c36c0bcd47de0f3bdc1adcbcfa;hpb=968db78efd29b1f4890068693728299b2c7c92c7;p=builder.git diff --git a/source/csourcefile.cpp b/source/csourcefile.cpp index 8240278..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 = "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); } }