[CMake] CPack install directory
raphael.cotty at googlemail.com
Tue Dec 18 13:01:38 EST 2007
The first issue is that the debian packager is inserting a "usr" directory:
If my CMAKE_INSTALL_PREFIX is "/dev/install" and in my CMakeLists.txt I
INSTALL( FILES foo DESTINATION "etc" ) then the make install will copy foo
Then the DEB packaging will create a debian package which will install foo
This is done in CPack/cmCPackDebGenerator.cxx, as I tried to explain in the
I hope this is a bit clearer!
On Dec 18, 2007 5:47 PM, Alexander Neundorf <a.neundorf-work at gmx.net> wrote:
> sorry, I don't understand everything you wrote.
> On Tuesday 18 December 2007, Raphael Cotty wrote:
> > Hi,
> > After looking at the source code I found in
> > that if CPACK_PACKAGING_INSTALL_PREFIX is not set then it is set to
> > Then the data.tar.gz is creating from directory usr.
> > First this code will give an understandable error if the user sets
> > CPACK_PACKAGING_INSTALL_PREFIX to something else than "/usr".
> Do you mean it is good that it gives an understandable error or that it is
> that there is an error ?
> Why do we get an error if it is set to something else ?
> > Secondly this doesn't allow the debian package to install files
> You mean installing the binary deb package to a different prefix than what
> was intended for ?
> Is this supposed to work ? If you have RPATH in the files then it can't be
> installed to an arbitrary location.
> > This insertion of a usr directory is done I suppose to allow the tar
> > command not to add the control, debian-binary, and itself.
> > One way to get ride of this is to remove the "usr" insertion, do the tar
> > first like this: (tar cfz ../data.tar.gz .), copy it to the current
> > directory, remove it from the previous location. Then do the rest of the
> > work like before.
> > This of course can be optimised.
> Can you please explain a bit more ?
> Thanks for the feedback
> CMake mailing list
> CMake at cmake.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the CMake