cmake: add .rcX or .dev suffix to LWIP_VERSION_STRING

This commit is contained in:
Simon Goldschmidt 2018-07-12 21:16:59 +02:00
parent d3191e4835
commit cf330c50e6

View File

@ -11,13 +11,24 @@
set(LWIP_VERSION_MAJOR "2") set(LWIP_VERSION_MAJOR "2")
set(LWIP_VERSION_MINOR "0") set(LWIP_VERSION_MINOR "0")
set(LWIP_VERSION_REVISION "3") set(LWIP_VERSION_REVISION "3")
# LWIP_VERSION_RC is set to LWIP_RC_RELEASE for official releases */ # LWIP_VERSION_RC is set to LWIP_RC_RELEASE for official releases
# LWIP_VERSION_RC is set to LWIP_RC_DEVELOPMENT for Git versions */ # LWIP_VERSION_RC is set to LWIP_RC_DEVELOPMENT for Git versions
# Numbers 1..31 are reserved for release candidates
set(LWIP_VERSION_RC "LWIP_RC_DEVELOPMENT") set(LWIP_VERSION_RC "LWIP_RC_DEVELOPMENT")
set(LWIP_VERSION_STRING if ("${LWIP_VERSION_RC}" STREQUAL "LWIP_RC_RELEASE")
set(LWIP_VERSION_STRING
"${LWIP_VERSION_MAJOR}.${LWIP_VERSION_MINOR}.${LWIP_VERSION_REVISION}" "${LWIP_VERSION_MAJOR}.${LWIP_VERSION_MINOR}.${LWIP_VERSION_REVISION}"
) )
elseif ("${LWIP_VERSION_RC}" STREQUAL "LWIP_RC_DEVELOPMENT")
set(LWIP_VERSION_STRING
"${LWIP_VERSION_MAJOR}.${LWIP_VERSION_MINOR}.${LWIP_VERSION_REVISION}.dev"
)
else ("${LWIP_VERSION_RC}" STREQUAL "LWIP_RC_RELEASE")
set(LWIP_VERSION_STRING
"${LWIP_VERSION_MAJOR}.${LWIP_VERSION_MINOR}.${LWIP_VERSION_REVISION}.rc${LWIP_VERSION_RC}"
)
endif ("${LWIP_VERSION_RC}" STREQUAL "LWIP_RC_RELEASE")
# The minimum set of files needed for lwIP. # The minimum set of files needed for lwIP.
set(lwipcore_SRCS set(lwipcore_SRCS