X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ffiletarget.cpp;h=21c2bbf2019bc9fb64bbd80a2f48408d239400ea;hb=95d5743c0f2a0dd8b56928525b8caa5f6ee8cc1d;hp=9908c0d4d2836c36c5e05e1eda9aa221bab067b2;hpb=8818c970f123a7fa44bf41bc60369217d083b4da;p=builder.git diff --git a/source/filetarget.cpp b/source/filetarget.cpp index 9908c0d..21c2bbf 100644 --- a/source/filetarget.cpp +++ b/source/filetarget.cpp @@ -39,9 +39,9 @@ void FileTarget::init(const SourcePackage *p) string FileTarget::generate_name(Builder &builder, const SourcePackage *pkg, const FS::Path &path) { - if(pkg && FS::descendant_depth(path, pkg->get_source())>=0) + if(pkg && FS::descendant_depth(path, pkg->get_source_directory())>=0) { - FS::Path relpath = FS::relative(path, pkg->get_source()); + FS::Path relpath = FS::relative(path, pkg->get_source_directory()); return format("<%s>%s", pkg->get_name(), relpath.str().substr(1)); } else if(FS::descendant_depth(path, builder.get_prefix())>=0)