[CMake] What is the CMake equivalent for autotools "make dist" ?

Eric Noulard eric.noulard at gmail.com
Tue Oct 14 03:31:46 EDT 2014


2014-10-14 9:21 GMT+02:00 Jörg Kreuzberger <j.kreuzberger at procitec.de>:

> Hi!
>
> This was also new to me, quite good. Question is now: i have configured
> cpack in my CMakeLists to use TGZ only (on linux).
> The binary package is made as tgz. For the source 3 packages are generated
> (as in your example). How could this be
> limited to the same as for the binaries or a different but just one?
> With my sources it takes some time to package...
>

The way to select the list of CPack generator to be used is the same for
BINARY or SOURCE.

set(CPACK_GENERATOR "TGZ")
select TGZ for BINARY

set(CPACK_SOURCE_GENERATOR "TGZ")
does the same for SOURCE.

the default value of CPACK_SOURCE_GENERATOR is "TZ;TGZ;TBZ2"  (On unix).


-- 
Erk
L'élection n'est pas la démocratie -- http://www.le-message.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20141014/adda8d2d/attachment.html>


More information about the CMake mailing list