Version protoc according to the compiler version number.

Previously we were using the C++ runtime version, which includes an extra major version number.  See #12064

PiperOrigin-RevId: 513049588
pull/12072/head
Mike Kruskal 2 years ago committed by Copybara-Service
parent 2b462ae58d
commit e67136d289
  1. 2
      CMakeLists.txt

@ -114,7 +114,7 @@ message(STATUS "${protobuf_VERSION_PRERELEASE}")
# Package version
set(protobuf_VERSION
"${protobuf_VERSION_MAJOR}.${protobuf_VERSION_MINOR}.${protobuf_VERSION_PATCH}")
"${protobuf_VERSION_MINOR}.${protobuf_VERSION_PATCH}")
if(protobuf_VERSION_PRERELEASE)
set(protobuf_VERSION "${protobuf_VERSION}.${protobuf_VERSION_PRERELEASE}")

Loading…
Cancel
Save