mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-01 19:58:15 +00:00
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:
committed by
Wouter van Oortmerssen
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++;
|
||||
|
||||
Reference in New Issue
Block a user