Correct inverted logic around include prefixes. (#5689)
4d1a9f8d9e
inverted the logic around
keeping the include prefix. This change fixes the error.
This commit is contained in:
parent
a2c12900aa
commit
bcd58a159b
|
@ -76,10 +76,10 @@ std::string GenerateFBS(const Parser &parser, const std::string &file_name) {
|
|||
continue;
|
||||
std::string basename;
|
||||
if(parser.opts.keep_include_path) {
|
||||
basename = flatbuffers::StripExtension(it->second);
|
||||
} else {
|
||||
basename = flatbuffers::StripPath(
|
||||
flatbuffers::StripExtension(it->second));
|
||||
} else {
|
||||
basename = flatbuffers::StripExtension(it->second);
|
||||
}
|
||||
schema += "include \"" + basename + ".fbs\";\n";
|
||||
num_includes++;
|
||||
|
|
Loading…
Reference in New Issue