From f0dd1d938b313c10651bb54635aa327f486bcdcf Mon Sep 17 00:00:00 2001 From: Richard Cole Date: Wed, 23 Oct 2024 12:01:34 +0100 Subject: [PATCH] only print pre-release version if it makes sense to do so --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19bb3db8f0..c6a744c418 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -106,18 +106,17 @@ string(REGEX REPLACE "${protobuf_VERSION_REGEX}" "\\3" string(REGEX REPLACE "${protobuf_VERSION_REGEX}" "\\5" protobuf_VERSION_PRERELEASE "${protobuf_VERSION_STRING}") -message(STATUS "${protobuf_VERSION_PRERELEASE}") - # Package version set(protobuf_VERSION "${protobuf_VERSION_MINOR}.${protobuf_VERSION_PATCH}") if(protobuf_VERSION_PRERELEASE) + message(STATUS "${protobuf_VERSION_PRERELEASE}") set(protobuf_VERSION "${protobuf_VERSION}.${protobuf_VERSION_PRERELEASE}") else() set(protobuf_VERSION "${protobuf_VERSION}.0") endif() -message(STATUS "${protobuf_VERSION}") +message(STATUS "protobuf version: ${protobuf_VERSION}") if(protobuf_VERBOSE) message(STATUS "Configuration script parsing status [")