mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +03:00
Adjust version number for the windows build
[ci skip]
This commit is contained in:
parent
8a2b29a3bf
commit
2054aad975
1 changed files with 5 additions and 2 deletions
|
@ -13,8 +13,12 @@ project(nheko LANGUAGES C CXX)
|
|||
set(CPACK_PACKAGE_VERSION_MAJOR "0")
|
||||
set(CPACK_PACKAGE_VERSION_MINOR "2")
|
||||
set(CPACK_PACKAGE_VERSION_PATCH "1")
|
||||
set(PROJECT_VERSION_MAJOR ${CPACK_PACKAGE_VERSION_MAJOR})
|
||||
set(PROJECT_VERSION_MINOR ${CPACK_PACKAGE_VERSION_MINOR})
|
||||
set(PROJECT_VERSION_PATCH ${CPACK_PACKAGE_VERSION_PATCH})
|
||||
|
||||
# Set PROJECT_VERSION_PATCH and PROJECT_VERSION_TWEAK to 0 if not present, needed by add_project_meta
|
||||
# Set PROJECT_VERSION_PATCH & PROJECT_VERSION_TWEAK to 0 if not present
|
||||
# Needed by add_project_meta.
|
||||
fix_project_version()
|
||||
|
||||
# Set additional project information
|
||||
|
@ -97,7 +101,6 @@ if(GIT)
|
|||
endif(GIT)
|
||||
|
||||
set(CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
|
||||
set(PROJECT_VERSION_MAJOR ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR})
|
||||
set(PROJECT_VERSION ${CPACK_PACKAGE_VERSION})
|
||||
|
||||
message(STATUS "Version: ${PROJECT_VERSION}")
|
||||
|
|
Loading…
Reference in a new issue