[CMake] Automatic regeneration of software packages by CPack?

Micha Hergarden micha.hergarden at gmail.com
Mon Nov 10 13:44:46 EST 2014


On 11/10/2014 07:40 PM, SF Markus Elfring wrote:
>> 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.
> Thanks for your suggestion.
>
>
>> It's not an ideal solution, but it worked just fine for me.
> Does this feedback mean that you stumbled also on missing build
> dependencies around generation of DEB and RPM packages with CPack?
>
> Regards,
> Markus
Not sure.. cpack is an external tool in the perspective of cmake, so in
that respect I don't think you need/want this kind of integration. On
the other hand, this type of operation does seem to pop up quite often.
I actually don't know if this is an omission or a deliberate design choice.

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/a2d291c9/attachment.sig>


More information about the CMake mailing list