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

Brad King brad.king at kitware.com
Wed May 30 10:04:03 EDT 2018


On 05/30/2018 09:54 AM, Eric Noulard wrote:
> protoc can already do something like that but it spits out a makefile includable file.
> 
> see --dependency_out=FILE option.

That may work well for the Ninja generator at least.  See the
add_custom_command `DEPFILE` option.

One day it would be nice to teach the Makefile generator to use
depfile-style dependencies (on compilers that support it) instead
of doing its own scanning.

-Brad


More information about the cmake-developers mailing list