Hi all,
I try to use Cap'NProto in a CMake based C++ project. CMake runs capnp tool to generate headers/sources and adds them to the project. With this approach I eliminate the inconsistent states, however the generated files are touched every time CMake runs, so the compiler recompiles them during the build. With forward declaration it wouldn't be a big deal, but as far as I understand the generated code I can not forward declare builders and readers since they are nested classes. This is a really unfortunate situation, because the headers using the generated code are used in many components (configurations). Can I somehow forward declare generated classes? Could you advise some technique to solve the described situation? Is it intended to prohibit forward declaration?
Thank you in advance: Adam