only print pre-release version if it makes sense to do so

pull/18958/head
Richard Cole 4 months ago
parent 5706140e09
commit f0dd1d938b
  1. 5
      CMakeLists.txt

@ -106,18 +106,17 @@ string(REGEX REPLACE "${protobuf_VERSION_REGEX}" "\\3"
string(REGEX REPLACE "${protobuf_VERSION_REGEX}" "\\5" string(REGEX REPLACE "${protobuf_VERSION_REGEX}" "\\5"
protobuf_VERSION_PRERELEASE "${protobuf_VERSION_STRING}") protobuf_VERSION_PRERELEASE "${protobuf_VERSION_STRING}")
message(STATUS "${protobuf_VERSION_PRERELEASE}")
# Package version # Package version
set(protobuf_VERSION set(protobuf_VERSION
"${protobuf_VERSION_MINOR}.${protobuf_VERSION_PATCH}") "${protobuf_VERSION_MINOR}.${protobuf_VERSION_PATCH}")
if(protobuf_VERSION_PRERELEASE) if(protobuf_VERSION_PRERELEASE)
message(STATUS "${protobuf_VERSION_PRERELEASE}")
set(protobuf_VERSION "${protobuf_VERSION}.${protobuf_VERSION_PRERELEASE}") set(protobuf_VERSION "${protobuf_VERSION}.${protobuf_VERSION_PRERELEASE}")
else() else()
set(protobuf_VERSION "${protobuf_VERSION}.0") set(protobuf_VERSION "${protobuf_VERSION}.0")
endif() endif()
message(STATUS "${protobuf_VERSION}") message(STATUS "protobuf version: ${protobuf_VERSION}")
if(protobuf_VERBOSE) if(protobuf_VERBOSE)
message(STATUS "Configuration script parsing status [") message(STATUS "Configuration script parsing status [")

Loading…
Cancel
Save