[CMake] CPack DEB version info is missing patch level
Domen Vrankar
domen.vrankar at gmail.com
Tue Oct 25 15:48:32 EDT 2016
2016-10-25 16:59 GMT+02:00 cen <imbacen at gmail.com>:
>
> Why is patch level not baked into the DEB but it is in RPM? If install the
> deb, soft links have the proper patch level version so I guess it is
> ultimately ok but kinda annoying.
>
Which version of CPack are you using?
I can't reproduce this even with old CMake version 3.0.2 and minimal
CMakeLists.txt:
#------
cmake_minimum_required(VERSION 3.0)
project(test)
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt
DESTINATION dest)
set(CPACK_PACKAGE_VERSION_MAJOR 1)
set(CPACK_PACKAGE_VERSION_MINOR 2)
set(CPACK_PACKAGE_VERSION_PATCH 3)
set(CPACK_PACKAGE_CONTACT "Test <test at test.com>")
include(CPack)
#------
cmake -D CPACK_BINARY_DEB:bool=ON ..
make package
dpkg-deb -I test-1.2.3-Linux.deb
result: Version: 1.2.3
Regards,
Domen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20161025/fb2d67af/attachment.html>
More information about the CMake
mailing list