Skip to content

Commit

Permalink
Version protoc according to the compiler version number.
Browse files Browse the repository at this point in the history
Previously we were using the C++ runtime version, which includes an extra major version number.  See #12064

PiperOrigin-RevId: 513049588
  • Loading branch information
mkruskal-google authored and Copybara-Service committed Feb 28, 2023
1 parent 2b462ae commit e67136d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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}")
Expand Down

0 comments on commit e67136d

Please sign in to comment.