]> git.tdb.fi Git - builder.git/blobdiff - source/csourcefile.cpp
Comment changes
[builder.git] / source / csourcefile.cpp
index 3c3aad935f965e7c039ad68bbe3d7419afb832f6..b0346e46cd01d94dc5d57ef01daf2823f8bb37cb 100644 (file)
@@ -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);
        }
 }