[CMake] how broken is the RPM support?

a.neundorf-work at gmx.net a.neundorf-work at gmx.net
Thu Oct 11 17:00:45 EDT 2007


On Wednesday 10 October 2007 22:32, Eric Noulard wrote:
> 2007/10/10, kent williams <nkwmailinglists at gmail.com>:
> > I just installed the CVS CMake.  There is a CPackRPM.cmake file in the
> > Modules directory, but it's not clear to me how to tell CPack I want
> > to generate an RPM, or a Source RPM.
>
> If you want to tell CPack to generate RPM you should either:
>
> 1) Add RPM generator to the list of CPack generator
>     in your CMakeLists.txt
>
>     SET(CPACK_GENERATOR "TGZ;RPM")
>     INCLUDE(CPack)
>
>    Then make package will build both TGZ and RPM.

You can also skip setting CPAK_GENERATOR, then you will be able to 
enable/disable every package generator using cpack (with cmake cvs HEAD).

Alex


More information about the CMake mailing list