From 8543062496cb35d73014d0a9877cbe5553aa30a4 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 12 Jun 2019 19:40:01 +0300 Subject: [PATCH] Allow generator commands to reside outside of the package In particular, this lets system binaries to be used as generators. --- source/sourcegenerator.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.45.2