When I call protoc like this
protoc --cpp_out=. path/to/test.proto
files
path/to/test.pb.cc andpath/to/test.pb.h
which I want. But since cc requires h , h included as
#include "path/to/test.pb.h"
what I do not want. My scons tool is protoc call protoc from the root of the project, and not from a directory that includes the source files. I did not find the obvious option in the man page or in the help text.
So, my next idea was to consider this “correct” and set up my build system, but: These two files are siblings in the directory tree, so when one includes the other, the path is not required. Even compiling manually does not work.
Can someone help me?
source share