X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuilder.cpp;h=2c137ca406841a1159269851f8177261504c91c9;hb=e36dac301c41799d374b6d537129b2be63f05fb2;hp=b90f2c4153651628c04ffbf552c9450095931110;hpb=5504b35e6c6cfb1cfa098b94e31cda173cc0482a;p=builder.git diff --git a/source/builder.cpp b/source/builder.cpp index b90f2c4..2c137ca 100644 --- a/source/builder.cpp +++ b/source/builder.cpp @@ -301,6 +301,10 @@ int Builder::create_targets() if(!i->second->get_buildable()) continue; + Path::Path inst_base; + if(i->second->get_config().is_option("prefix")) + inst_base=i->second->get_config().get_option("prefix").value; + const ComponentList &components=i->second->get_components(); for(ComponentList::const_iterator j=components.begin(); j!=components.end(); ++j) { @@ -313,8 +317,6 @@ int Builder::create_targets() files.push_back(*k / *l); } - Path::Path inst_base=i->second->get_config().get_option("prefix").value; - bool build_exe=j->get_type()!=Component::HEADERS; list objs;