Commit bcd58a15 authored by Michael Beardsworth's avatar Michael Beardsworth Committed by Wouter van Oortmerssen

Correct inverted logic around include prefixes. (#5689)

4d1a9f8d9eab9fc6762e03cd862576965a0c6920 inverted the logic around
keeping the include prefix. This change fixes the error.
parent a2c12900
...@@ -76,10 +76,10 @@ std::string GenerateFBS(const Parser &parser, const std::string &file_name) { ...@@ -76,10 +76,10 @@ std::string GenerateFBS(const Parser &parser, const std::string &file_name) {
continue; continue;
std::string basename; std::string basename;
if(parser.opts.keep_include_path) { if(parser.opts.keep_include_path) {
basename = flatbuffers::StripExtension(it->second);
} else {
basename = flatbuffers::StripPath( basename = flatbuffers::StripPath(
flatbuffers::StripExtension(it->second)); flatbuffers::StripExtension(it->second));
} else {
basename = flatbuffers::StripExtension(it->second);
} }
schema += "include \"" + basename + ".fbs\";\n"; schema += "include \"" + basename + ".fbs\";\n";
num_includes++; num_includes++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment