From e67136d289e6cf4265e2763dd77216940c400ac9 Mon Sep 17 00:00:00 2001 From: Mike Kruskal Date: Tue, 28 Feb 2023 15:03:20 -0800 Subject: [PATCH] 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 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c068aae43c..cc574f90a7 100644 --- a/CMakeLists.txt +++ b/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}")