jellyfin-media-player/CMakeModules/VersionConfiguration.cmake
2024-06-07 22:17:03 -04:00

34 lines
935 B
CMake

# Get the current date.
# include(WebClientVariables)
string(TIMESTAMP CURRENT_DATE "%Y-%m-%d")
# Get git revision version
#include(GetGitRevisionDescription)
#get_git_head_revision(REFSPEC FULL_GIT_REVISION)
#if(FULL_GIT_REVISION STREQUAL "GITDIR-NOTFOUND")
# set(GIT_REVISION "git")
#else(FULL_GIT_REVISION STREQUAL "GITDIR-NOTFOUND")
# string(SUBSTRING ${FULL_GIT_REVISION} 0 8 GIT_REVISION)
#endif(FULL_GIT_REVISION STREQUAL "GITDIR-NOTFOUND")
# Get the build number if available
if(DEFINED ENV{BUILD_NUMBER})
set(VERSION_BUILD "$ENV{BUILD_NUMBER}")
set(VERSION_BUILD_NR "$ENV{BUILD_NUMBER}")
else()
set(VERSION_BUILD "dev")
set(VERSION_BUILD_NR "0")
endif()
set(VERSION_MAJOR 1)
set(VERSION_MINOR 11)
set(VERSION_NANO 1)
option(UPGRADE_DEBUG "" OFF)
set(VERSION_STRING "1.11.1")
set(VERSION_STRING_SHORT "1.11.1")
set(CANONICAL_VERSION_STRING "1.11.1")
configure_file(src/core/Version.cpp.in src/core/Version.cpp)