mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Remove dash from version string when building outside of git
This commit is contained in:
parent
f955ec762c
commit
04e4776886
1 changed files with 5 additions and 1 deletions
|
@ -126,7 +126,11 @@ if(GIT)
|
|||
COMMAND ${GIT} rev-parse --short HEAD
|
||||
OUTPUT_VARIABLE GIT_OUT OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
)
|
||||
set(CPACK_PACKAGE_VERSION_PATCH "${CPACK_PACKAGE_VERSION_PATCH}-${GIT_OUT}")
|
||||
if(GIT_OUT)
|
||||
set(CPACK_PACKAGE_VERSION_PATCH "${CPACK_PACKAGE_VERSION_PATCH}-${GIT_OUT}")
|
||||
else()
|
||||
set(CPACK_PACKAGE_VERSION_PATCH "${CPACK_PACKAGE_VERSION_PATCH}")
|
||||
endif()
|
||||
endif(GIT)
|
||||
|
||||
set(CPACK_PACKAGE_VERSION ${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH})
|
||||
|
|
Loading…
Reference in a new issue