1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-24 16:55:20 +03:00

Better handling of versions to avoid user confusion for non otx compilations

This commit is contained in:
3djc 2021-06-18 15:46:57 +02:00
parent 8317d17d1b
commit e3d6a90bc1

View file

@ -2,7 +2,10 @@ project(OpenTX)
set(VERSION_MAJOR "2")
set(VERSION_MINOR "3")
set(VERSION_REVISION "13")
set(VERSION_REVISION "12")
if (TEST_BUILD_WARNING)
math(EXPR VERSION_REVISION "${VERSION_REVISION} + 1")
endif()
set(VERSION_SUFFIX $ENV{OPENTX_VERSION_SUFFIX})
set(VERSION_FAMILY ${VERSION_MAJOR}.${VERSION_MINOR})
set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REVISION}${VERSION_SUFFIX})