Skip to content
This repository was archived by the owner on Mar 22, 2023. It is now read-only.

Commit b7dc434

Browse files
cmake: use SRCVERSION in package name, instead of VERSION
1 parent c89e1de commit b7dc434

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/packages.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION
2929
${CPACK_PACKAGING_INSTALL_PREFIX}/share/doc)
3030

3131
set(CPACK_PACKAGE_NAME "libpmemobj++")
32-
set(CPACK_PACKAGE_VERSION ${VERSION})
32+
set(CPACK_PACKAGE_VERSION ${SRCVERSION}) # use the most accurate version (not ${VERSION})
3333
set(CPACK_PACKAGE_VERSION_MAJOR ${VERSION_MAJOR})
3434
set(CPACK_PACKAGE_VERSION_MINOR ${VERSION_MINOR})
35+
#set(CPACK_PACKAGE_VERSION_PATCH ${VERSION_PATCH})
3536
set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "c++ bindings to libpmemobj")
3637
set(CPACK_PACKAGE_VENDOR "Intel")
3738

0 commit comments

Comments
 (0)