[CMake] Automatic regeneration of software packages by CPack?

Micha Hergarden micha.hergarden at gmail.com
Mon Nov 10 13:01:49 EST 2014


On 11/09/2014 08:34 PM, SF Markus Elfring wrote:
> Hello,
>
> I configured a specific software to use the CPack modules to generate
> corresponding DEB and RPM packages together with CMake 3 a while ago.
>
> I notice now that package specifications and control files contain
> outdated version data after I called the command "make package".
> How can I achieve that another build dependency is automatically
> considered there?
>
> Regards,
> Markus
Hello,

You could, as a workaround for the problem, define a add_custom_target
that removes the corresponding rpm/deb packages and just calls 'cmake
--build --target package' to regenerate them. It's not an ideal
solution, but it worked just fine for me.

Regards,
Micha

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://public.kitware.com/pipermail/cmake/attachments/20141110/b728b4cc/attachment-0001.sig>


More information about the CMake mailing list