mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-23 04:38:37 -05:00
ffa6305b98
An ambiguity existed between release candidates and development versions as there was no definitive identification for development versions. Added a new version number suffix of '-devel' which appears if the release candidate number is missing or zero in Versions.cmake and the revision is not marked as a release version, also in Versions.cmake. Also re-factored setting of version number suffiexes to a single place in in CMake/VersionCompute.cmake. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4422 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
12 lines
462 B
CMake
12 lines
462 B
CMake
# Load version number components.
|
|
include (${CMAKE_SOURCE_DIR}/Versions.cmake)
|
|
|
|
# Compute the full version string.
|
|
if (WSJTX_RC AND NOT WSJTX_VERSION_IS_RELEASE)
|
|
set (WSJTX_VERSION_PATCH ${WSJTX_VERSION_PATCH}-rc${WSJTX_RC})
|
|
elseif (NOT WSJTX_VERSION_IS_RELEASE)
|
|
set (WSJTX_VERSION_PATCH ${WSJTX_VERSION_PATCH}-devel)
|
|
endif (WSJTX_RC AND NOT WSJTX_VERSION_IS_RELEASE)
|
|
|
|
set (wsjtx_VERSION ${WSJTX_VERSION_MAJOR}.${WSJTX_VERSION_MINOR}.${WSJTX_VERSION_PATCH})
|