Closed cho-m closed 9 months ago
Thank you for working on it! Sorry about delate with review.
Thank you very much for doing this change. I believe it's very reasonable approach to use cmake file supplied by Protobuf itself and use cmake one (which is on risk to be outdated) as second attempt.
This sets correct C++ standard for newer Protobuf installations as FindProtobuf module only sets cxx_std_11
Otherwise, since
CMAKE_CXX_STANDARD
is not forced, the build will default to-std=gnu++11
, e.g.Which then results in build failure:
On side note, forcing
-DCMAKE_CXX_STANDARD=20
will get past above failure and then fail if Protobuf is linked to Abseil: