[cmake-developers] How to handle dependencies of protobuf files ?

Brad King brad.king at kitware.com
Tue May 29 09:52:16 EDT 2018


On 05/15/2018 03:45 PM, Alexander Neundorf wrote:
> I think to do it properly, there would have to be a dependency scanning for 
> proto files like there is for C/C++ headers.

In order to handle implicit dependencies like that implied by

    import "MyBase.proto";

then they would somehow need to be extracted from source content.
Ideally protoc should be able to write a depfile as a side effect.

Otherwise all dependencies should be listed explicitly somewhere.

-Brad


More information about the cmake-developers mailing list