mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 19:31:02 +01:00
b2ffc58070
Fix compile warning.
35 lines
1.5 KiB
CMake
35 lines
1.5 KiB
CMake
# Change this file when releasing a new version.
|
|
|
|
# Version numbers.
|
|
set(CLEMENTINE_VERSION_MAJOR 0)
|
|
set(CLEMENTINE_VERSION_MINOR 5)
|
|
set(CLEMENTINE_VERSION_PATCH 3)
|
|
|
|
include(FindSubversion)
|
|
|
|
set(BUILDBOT_REVISION $ENV{BUILDBOT_REVISION})
|
|
if(NOT BUILDBOT_REVISION)
|
|
find_package(Subversion)
|
|
if(SUBVERSION_FOUND)
|
|
Subversion_WC_INFO(${PROJECT_SOURCE_DIR} clementine)
|
|
set(BUILDBOT_REVISION ${clementine_WC_REVISION})
|
|
endif(SUBVERSION_FOUND)
|
|
endif(NOT BUILDBOT_REVISION)
|
|
|
|
if(BUILDBOT_REVISION)
|
|
set(CLEMENTINE_VERSION_STRING "${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR} r${BUILDBOT_REVISION}") # Displayed in GUIs
|
|
set(CLEMENTINE_VERSION_SHORT_STRING "${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}r${BUILDBOT_REVISION}") # Used in filenames
|
|
set(CLEMENTINE_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}.90.r${BUILDBOT_REVISION})
|
|
set(CLEMENTINE_DEB_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}.90~r${BUILDBOT_REVISION}~${DEB_DIST})
|
|
else(BUILDBOT_REVISION)
|
|
if (CLEMENTINE_VERSION_PATCH)
|
|
set(CLEMENTINE_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR}.${CLEMENTINE_VERSION_PATCH})
|
|
else (CLEMENTINE_VERSION_PATCH)
|
|
set(CLEMENTINE_VERSION ${CLEMENTINE_VERSION_MAJOR}.${CLEMENTINE_VERSION_MINOR})
|
|
endif (CLEMENTINE_VERSION_PATCH)
|
|
set(CLEMENTINE_DEB_VERSION ${CLEMENTINE_VERSION}~${DEB_DIST})
|
|
set(CLEMENTINE_VERSION_STRING "${CLEMENTINE_VERSION}")
|
|
set(CLEMENTINE_VERSION_SHORT_STRING "${CLEMENTINE_VERSION}")
|
|
endif(BUILDBOT_REVISION)
|
|
|