Fix CPack package version number

Currently running "ninja-build package" produces a file with and incorrect
version number. This patch passes the CMake version variables into CPack to get
the correct filename.

Old "gnucash-0.1.1-Linux.tar.gz" new "gnucash-2.7.5-Linux.tar.gz"
This commit is contained in:
Guy Taylor 2018-03-05 15:38:41 +00:00
parent 2d983c6703
commit 41d79f4ef3

View File

@ -921,6 +921,11 @@ ENDIF()
# ############################################################
# Package creation rules
SET(CPACK_PACKAGE_VERSION_MAJOR "${GNUCASH_MAJOR_VERSION}")
SET(CPACK_PACKAGE_VERSION_MINOR "${GNUCASH_MINOR_VERSION}")
SET(CPACK_PACKAGE_VERSION_PATCH "${GNUCASH_MICRO_VERSION}")
SET(CPACK_PACKAGE_VERSION "${VERSION}")
IF(UNIX)
SET(CPACK_GENERATOR "TGZ")
ENDIF(UNIX)