js8call/CMake/Modules/VersionCompute.cmake
Chris-AC9KH e5533512a3 Fix versioning system to not allow -rc suffix on version string
Remove -devel suffix and replace it with NOT_FOR_RELEASE for non-release builds
Fix MacOS short version string, which requires semantic versioning with no suffix
Fix MacOS Get Info string
2025-11-23 20:27:12 -06:00

15 lines
635 B
CMake

# Load version number components.
include (${CMAKE_SOURCE_DIR}/Versions.cmake)
# Compute the version string
#MacOS must use semantic versioning for the Info.plist short string
set (MACOS_VERSION_SHORT ${WSJTX_VERSION_PATCH})
if (NOT WSJTX_VERSION_IS_RELEASE)
set (WSJTX_VERSION_PATCH ${WSJTX_VERSION_PATCH}-NOT_FOR_RELEASE)
elseif (WSJTX_VERSION_IS_RELEASE)
set (WSJTX_VERSION_PATCH ${WSJTX_VERSION_PATCH})
endif (NOT WSJTX_VERSION_IS_RELEASE)
set (wsjtx_VERSION ${WSJTX_VERSION_MAJOR}.${WSJTX_VERSION_MINOR}.${WSJTX_VERSION_PATCH})
set (wsjtx_SHORT_VERSION ${WSJTX_VERSION_MAJOR}.${WSJTX_VERSION_MINOR}.${MACOS_VERSION_SHORT})