]> git.tdb.fi Git - builder.git/blobdiff - source/binarycomponent.cpp
Use correct library path for libraries from the containing package
[builder.git] / source / binarycomponent.cpp
index 0d3e253b3d5d4afc8714fe8e16eff45724ab348c..565e8bc1759ad6fb3bffdda89e3626fbde021012 100644 (file)
@@ -32,7 +32,7 @@ void BinaryComponent::create_build_info()
                if(!(*i)->get_install())
                {
                        build_info.libmodes[(*i)->get_name()] = BuildInfo::STATIC;
-                       build_info.libpath.push_back((*i)->get_package().get_source_directory());
+                       build_info.libpath.push_back((*i)->get_package().get_output_directory());
                }
        }
 
@@ -122,7 +122,7 @@ void BinaryComponent::create_targets() const
 }
 
 BinaryComponent::Loader::Loader(BinaryComponent &c):
-       DerivedObjectLoader<BinaryComponent, Component::Loader>(c)
+       DataFile::DerivedObjectLoader<BinaryComponent, Component::Loader>(c)
 {
        add("use", &Loader::use);
 }