From a3011103d754ac92126b46293d009e5a760e2aa0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 2 Oct 2012 08:10:40 +0200 Subject: Fix regression in include directive generation Make sure we remove the directory part. --- odb/generator.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/odb/generator.cxx b/odb/generator.cxx index d4e1505..2fecfb2 100644 --- a/odb/generator.cxx +++ b/odb/generator.cxx @@ -297,7 +297,8 @@ generate (options const& ops, // Include main file(s). // for (paths::const_iterator i (inputs.begin ()); i != inputs.end (); ++i) - hxx << "#include " << ctx->process_include_path (i->string ()) << endl; + hxx << "#include " << + ctx->process_include_path (i->leaf ().string ()) << endl; hxx << endl; -- cgit v1.1