[CMake] CPack: howto change directory layout depending on the generator

Timenkov Yuri ytimenkov at gmail.com
Sat Oct 4 00:54:32 EDT 2008


On Fri, Oct 3, 2008 at 2:15 AM, Alexander Neundorf
<a.neundorf-work at gmx.net>wrote:

> On Friday 19 September 2008, Tanguy Krotoff wrote:
> > Hi everybody
> >
> > I would like to change the directory layout generated by CPack given
> > the generator used.
>
> AFAIK this is currently not possible.
> And actually I'd also think it may not be a really good idea.
> Why do you want to have a different directory structure when installing
> your
> package as RPM, instead of e.g. TGZ ?

Because RPM uses absolute paths, while TGZ relative ones. Same true for some
windows GUI-based installers, where user can choose destination.

>
> If it works for TGZ, it works for RPM too.
>
> What you could do is to add a cmake option
> INSTALL_WITH_OTHER_DIRECTORY_STRUCTURE, and depending on this set the
> install
> directory variables (you should use variables for the destinations then)
> and
> the supported package formats accordingly.
> This would mean you need (at least) two buildtrees, one for one dir
> structure,
> one for the other.
>
> Alex
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081004/8753cdf9/attachment.htm>


More information about the CMake mailing list