Protobuf: Using find_package(Protobuf) with 3.0.0

Created on 9 Aug 2016  路  1Comment  路  Source: protocolbuffers/protobuf

Hi,

I asked this on Google Groups and was advised to ask here and grab the attention of @podsvirov and @yeswalrus .

As of 3.0.0 the CMake module requires us to set protobuf_MODULE_COMPATIBLE in order to get the benefits of the module code such as protobuf_generate_cpp(). The example seems to refer to this as "legacy compatibility mode" but the commit message says it is "improved". I must admit I am a CMake newbie to begin with, but in any case I don't quite understand the intention: Am I supposed to set this variable? Am I supposed to not set it unless I have to?

Thanks,
脴sse

cmake question

>All comments

Hello @Osse,
you can use protobuf_MODULE_COMPATIBLE variable, and can not use.
Please look at the examples/CMakeLists.txt file to see both versions use.

Was this page helpful?
0 / 5 - 0 ratings