Closed clementperon closed 1 year ago
Hi @clementperon thanks for this. I guess you are using system provided dependencies, rather than using vcpkg?
Possibly there is some difference between the way the vcpkg module presents its self vs no-vcpkg build. Let me test this internally and either merge it or pick an alternative...
Squashed into https://github.com/ARM-software/gator/pull/39
find_package(Protobuf) is used in CONFIG mode and will load the CMake config provided by the protobuf package.
When the Protobuf config is used it requires to set protobuf_MODULE_COMPATIBLE to ON to expose protobuf_generate_cpp()
See: https://github.com/protocolbuffers/protobuf/issues/7912
Instead of using the Protobuf config used the widely cmake module available since at least CMake 3.0.
Signed-off-by: Clément Péron peron.clem@gmail.com