[CMake] [CPack.cmake] take into account CPACK_PACKAGE_VERSION_xxxxxxxxx only once

Alexander Neundorf a.neundorf-work at gmx.net
Wed Mar 26 16:57:52 EDT 2008


On Friday 21 March 2008, Jerome Arbez-Gindre wrote:
> Hi,
>
> I have noticed that the overwriting of CPACK_PACKAGE_VERSION have no impact
> on the .deb packages file name (and have impact on sources packages).
>
> I propose to use the CPACK_PACKAGE_VERSION_xxxxxxxxx macros only once to
> set (if not set !) the CPACK_PACKAGE_VERSION and then only use the
> CPACK_PACKAGE_VERSION macro:

So your problem is that you set CPACK_PACKAGE_VERSION directly but not 
CPACK_PACKAGE_VERSION_[MAJOR|MINOR|PATCH], and and so you get the defaults 
for these three variables for the package name ?

Alex


More information about the CMake mailing list