X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsourcegenerator.cpp;h=6394bd715861466eef2f6fc78640d795c35e31d2;hb=8543062496cb35d73014d0a9877cbe5553aa30a4;hp=192ae289584b186461bd1442cbe1ce800391c7af;hpb=4e2a160d94ca808cfb511cc2d38e115d989809f2;p=builder.git diff --git a/source/sourcegenerator.cpp b/source/sourcegenerator.cpp index 192ae28..6394bd7 100644 --- a/source/sourcegenerator.cpp +++ b/source/sourcegenerator.cpp @@ -99,7 +99,10 @@ void SourceGenerator::Loader::argument(const string &a) void SourceGenerator::Loader::command(const string &c) { - obj.set_command((obj.package.get_source_directory()/c).str()); + if(c.find('/')!=string::npos) + obj.set_command((obj.package.get_source_directory()/c).str()); + else + obj.set_command(c); } void SourceGenerator::Loader::in_suffix(const string &s)