X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbinarypackage.cpp;h=cc90c0af4f5b26d70747938d481fd12af99bd455;hb=722d53055cc78a7a7d9901d2b1fe23a2a33fb623;hp=8c3571d103ac4fb9cc955e7178d3a8b745d26d95;hpb=1d687970cc35e54c3335f4aa2fdef23424fe0a06;p=builder.git diff --git a/source/binarypackage.cpp b/source/binarypackage.cpp index 8c3571d..cc90c0a 100644 --- a/source/binarypackage.cpp +++ b/source/binarypackage.cpp @@ -20,13 +20,13 @@ void BinaryPackage::set_path(const FS::Path &p) void BinaryPackage::create_build_info() { - for(StringList::iterator i=export_binfo.incpath.begin(); i!=export_binfo.incpath.end(); ++i) - if((*i)[0]=='@') - *i = (path/i->substr(1)).str(); + for(BuildInfo::PathList::iterator i=export_binfo.incpath.begin(); i!=export_binfo.incpath.end(); ++i) + if((*i)[0]=="@") + *i = path/i->subpath(1); - for(StringList::iterator i=export_binfo.libpath.begin(); i!=export_binfo.libpath.end(); ++i) - if((*i)[0]=='@') - *i = (path/i->substr(1)).str(); + for(BuildInfo::PathList::iterator i=export_binfo.libpath.begin(); i!=export_binfo.libpath.end(); ++i) + if((*i)[0]=="@") + *i = path/i->subpath(1); } BinaryPackage *BinaryPackage::from_flags(Builder &builder, const std::string &name, const vector &flags)