From 436af616b8c97cd5d13474799d2d3b1cd279acaf Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Mon, 20 Jul 2015 21:36:55 +0200 Subject: [PATCH] Rez: allow :-separated include paths --- Rez/RezLexer.cc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Rez/RezLexer.cc b/Rez/RezLexer.cc index d0ea80c7dd..33ed300711 100644 --- a/Rez/RezLexer.cc +++ b/Rez/RezLexer.cc @@ -122,7 +122,16 @@ void RezLexer::addDefine(std::string str) void RezLexer::addIncludePath(std::string path) { - pImpl->ctx.add_include_path(path.c_str()); + std::size_t pos = path.find(':'); + if(pos == std::string::npos) + { + pImpl->ctx.add_include_path(path.c_str()); + } + else + { + addIncludePath(path.substr(0,pos)); + addIncludePath(path.substr(pos + 1)); + } } bool RezLexer::atEnd()