Relative include paths in the generated `*.hpp` files
Hi there. In our project, we export the generated headers as an API of a 3rd party project. In the package, I have a common folder structure like include/<project>/flatbuffers/generated_flatbuffers.h. In some of the flatbuffers, I have included one into another, therefore, in the generated header, there are lines like
#include "another_generated_header.h"
The thing comes to the point, where in the consumer project, I specify the include paths to the include folder. I don't want to add deeper folders (like include/<project>/flatbuffers) as an include directory. However, since the <project>/flatbuffers part is missing in the generated header's #include directive, the included headers are not found.
Is there a way to tackle this issue, or maybe some plans on how to resolve this?
I do acknowledge, that it's also not that trivial to think of a way to tell the flatc compiler what prefix folders to put in the #include directive.
If I understand correctly, you want specific path prefix. Maybe you can use --include-prefix <project>/flatbuffers
@enum-class This was exactly what I was looking for. Probably missed my eye when looking into the documentation. Thanks a lot.