Re: [protobuf] Cannot build in CMake with FetchContent

2023-04-25 Thread 'Gabriele Baldoni' via Protocol Buffers
Right, what a stupid error, thanks for spotting this. On Tuesday, April 25, 2023 at 5:36:55 PM UTC+2 Adam Cozzette wrote: > I think the include directory > ${Protobuf_SOURCE_DIR}/third_party/abseil-cpp/absl should be just > ${Protobuf_SOURCE_DIR}/third_party/abseil-cpp. > > On Tue, Apr 25,

Re: [protobuf] Cannot build in CMake with FetchContent

2023-04-25 Thread 'Adam Cozzette' via Protocol Buffers
I think the include directory ${Protobuf_SOURCE_DIR}/third_party/abseil-cpp/absl should be just ${Protobuf_SOURCE_DIR}/third_party/abseil-cpp. On Tue, Apr 25, 2023 at 3:48 AM 'Gabriele Baldoni' via Protocol Buffers < protobuf@googlegroups.com> wrote: > Hi all, > > I'm experiencing some issue

[protobuf] Cannot build in CMake with FetchContent

2023-04-25 Thread 'Gabriele Baldoni' via Protocol Buffers
Hi all, I'm experiencing some issue when trying to use protobuf within CMake with fetch content when building/generating. I got this error: /root/example/car-pub/build/_deps/protobuf-src/src/google/protobuf/stubs/common.h:44:10: fatal error: absl/strings/string_view.h: No such file or