<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Oct 3, 2008 at 2:15 AM, Alexander Neundorf <span dir="ltr"><<a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Friday 19 September 2008, Tanguy Krotoff wrote:<br>
> Hi everybody<br>
><br>
> I would like to change the directory layout generated by CPack given<br>
> the generator used.<br>
<br>
</div>AFAIK this is currently not possible.<br>
And actually I'd also think it may not be a really good idea.<br>
Why do you want to have a different directory structure when installing your<br>
package as RPM, instead of e.g. TGZ ?</blockquote><div>Because RPM uses absolute paths, while TGZ relative ones. Same true for some windows GUI-based installers, where user can choose destination. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
If it works for TGZ, it works for RPM too.<br>
<br>
What you could do is to add a cmake option<br>
INSTALL_WITH_OTHER_DIRECTORY_STRUCTURE, and depending on this set the install<br>
directory variables (you should use variables for the destinations then) and<br>
the supported package formats accordingly.<br>
This would mean you need (at least) two buildtrees, one for one dir structure,<br>
one for the other.<br>
<br>
Alex<br>
<div><div></div><div class="Wj3C7c">_______________________________________________<br>
CMake mailing list<br>
<a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>