diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-22 12:56:22 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-03-22 12:57:21 +0100 |
commit | 9f3a32932eecb8fbf9ed4f747d7713380fbfc889 (patch) | |
tree | 0ce51a38c23810da30a5e2c4e05b706c22ebe0db /cmake | |
parent | 801ac421795b97f69230c4404a7f3a6eb17f9dec (diff) | |
download | accel-ppp-9f3a32932eecb8fbf9ed4f747d7713380fbfc889.tar.gz accel-ppp-9f3a32932eecb8fbf9ed4f747d7713380fbfc889.zip |
cpack: remove duplicate version number definition
Version number for Accel-PPP is already generated in CMakeLists.txt and thus
it should not be manually defined in a second place (cmake/cpack.cmake).
Reuse the version number obtained in CMakeLists.txt when building binary
packages -> single source.
Signed-off-by: Christian Poessinger <christian@poessinger.com>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/cpack.cmake | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/cmake/cpack.cmake b/cmake/cpack.cmake index e266cab..ffb5395 100644 --- a/cmake/cpack.cmake +++ b/cmake/cpack.cmake @@ -1,8 +1,9 @@ INCLUDE(InstallRequiredSystemLibraries) -SET(CPACK_PACKAGE_VERSION_MAJOR "1") -SET(CPACK_PACKAGE_VERSION_MINOR "12") -SET(CPACK_PACKAGE_VERSION_PATCH "0") +string(REPLACE "." ";" VERSION_LIST ${ACCEL_PPP_VERSION}) +list(GET VERSION_LIST 0 CPACK_PACKAGE_VERSION_MAJOR) +list(GET VERSION_LIST 1 CPACK_PACKAGE_VERSION_MINOR) +list(GET VERSION_LIST 2 CPACK_PACKAGE_VERSION_PATCH) SET(CPACK_PACKAGE_NAME "accel-ppp") SET(CPACK_PACKAGE_CONTACT "Dmitry Kozlov <xeb@mail.ru>") |