[CMake] CPack DEB version info is missing patch level
cen
imbacen at gmail.com
Tue Oct 25 16:05:34 EDT 2016
Sorry for wasting your time, it does work indeed. I forgot to pull the
correct version of CmakeLists.txt on my debian machine..
Thank you.
Domen Vrankar je 25. 10. 2016 ob 21:48 napisal:
> 2016-10-25 16:59 GMT+02:00 cen <imbacen at gmail.com
> <mailto: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 <mailto: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/3c8878f3/attachment-0001.html>
More information about the CMake
mailing list