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 deannagarcia committed Feb 28, 2023
1 parent 90623c7 commit b143586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,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 b143586

Please sign in to comment.