aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-02 08:10:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-02 08:10:40 +0200
commita3011103d754ac92126b46293d009e5a760e2aa0 (patch)
tree10b6a0ca217cc536732f25e7db2d598b5c07127e
parentc1b4f6e25f3c7594dcbcf7f5d95a5f89087f14b0 (diff)
Fix regression in include directive generation
Make sure we remove the directory part.
-rw-r--r--odb/generator.cxx3
1 files changed, 2 insertions, 1 deletions
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;