-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'protocolbuffers:main' into main
- Loading branch information
Showing
296 changed files
with
6,103 additions
and
11,340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,30 +79,18 @@ mark_as_advanced(protobuf_DEBUG_POSTFIX) | |
# User options | ||
include(${protobuf_SOURCE_DIR}/cmake/protobuf-options.cmake) | ||
|
||
# Version metadata | ||
set(protobuf_VERSION_STRING "3.21.4") | ||
set(protobuf_DESCRIPTION "Protocol Buffers") | ||
set(protobuf_CONTACT "[email protected]") | ||
|
||
# Overrides for option dependencies | ||
if (protobuf_BUILD_PROTOC_BINARIES OR protobuf_BUILD_TESTS) | ||
set(protobuf_BUILD_LIBPROTOC ON) | ||
endif () | ||
if (NOT protobuf_BUILD_PROTOBUF_BINARIES) | ||
set(protobuf_INSTALL OFF) | ||
endif() | ||
# Path to main configure script | ||
set(protobuf_CONFIGURE_SCRIPT "${protobuf_SOURCE_DIR}/configure.ac") | ||
|
||
# Parse configure script | ||
set(protobuf_AC_INIT_REGEX | ||
"^AC_INIT\\(\\[([^]]+)\\],\\[([^]]+)\\],\\[([^]]+)\\],\\[([^]]+)\\]\\)$") | ||
file(STRINGS "${protobuf_CONFIGURE_SCRIPT}" protobuf_AC_INIT_LINE | ||
LIMIT_COUNT 1 REGEX "^AC_INIT") | ||
# Description | ||
string(REGEX REPLACE "${protobuf_AC_INIT_REGEX}" "\\1" | ||
protobuf_DESCRIPTION "${protobuf_AC_INIT_LINE}") | ||
# Version | ||
string(REGEX REPLACE "${protobuf_AC_INIT_REGEX}" "\\2" | ||
protobuf_VERSION_STRING "${protobuf_AC_INIT_LINE}") | ||
# Contact | ||
string(REGEX REPLACE "${protobuf_AC_INIT_REGEX}" "\\3" | ||
protobuf_CONTACT "${protobuf_AC_INIT_LINE}") | ||
# Parse version tweaks | ||
set(protobuf_VERSION_REGEX "^([0-9]+)\\.([0-9]+)\\.([0-9]+)([-]rc[-]|\\.)?([0-9]*)$") | ||
string(REGEX REPLACE "${protobuf_VERSION_REGEX}" "\\1" | ||
|
Oops, something went wrong.