[CMake] Dependencies to protobuf sources

2018-10-06 Thread Stephan Menzel
Hello all, I am a long term user of CMake, protobuf and grpc on Windows (MSVC15) and Linux. Roughly in the beginning of this year I started to notice that dependencies of targets using generated sources to their appropriate protobuf files didn't work anymore. Basically, when I change a grpc source

Re: [CMake] Dependencies to protobuf sources

2018-10-07 Thread Stephan Menzel
On Sat, Oct 6, 2018 at 10:58 AM Stephan Menzel wrote: > > protobuf_generate(TARGET my_protobuf_lib) > > Well, it seems like this was the culprit all along. There is a bug in protobuf's usage of the add_custom_command. Appears this is known and fixed by: https://github.com/protocolbuffers/protobuf