diff options
Diffstat (limited to 'odb/generator.cxx')
-rw-r--r-- | odb/generator.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/odb/generator.cxx b/odb/generator.cxx index dfc5ba6..616190b 100644 --- a/odb/generator.cxx +++ b/odb/generator.cxx @@ -119,9 +119,9 @@ generate (options const& ops, // fs::auto_removes auto_rm; - path file (ops.output_name ().empty () + path file (ops.input_name ().empty () ? p.leaf () - : path (ops.output_name ()).leaf ()); + : path (ops.input_name ()).leaf ()); string base (file.base ().string ()); string hxx_name (base + ops.odb_file_suffix ()[db] + ops.hxx_suffix ()); |