From 41d79f4ef324210a70d8c63c28d844861cb8cf35 Mon Sep 17 00:00:00 2001 From: Guy Taylor Date: Mon, 5 Mar 2018 15:38:41 +0000 Subject: [PATCH] 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" --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 670fe8f772..86607a1887 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)