[CMake] CPack install directory

Alexander Neundorf a.neundorf-work at gmx.net
Tue Dec 18 13:10:02 EST 2007


On Tuesday 18 December 2007, Raphael Cotty wrote:
> Hi,
> 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
> have:
> INSTALL( FILES foo DESTINATION "etc" ) then the make install will copy foo
> to "/dev/install/etc".
>
> Then the DEB packaging will create a debian package which will install foo
> in "/usr/etc/".
>
> This is done in CPack/cmCPackDebGenerator.cxx, as I tried to explain in the
> previous post.

Ok. 
Would it help if CPACK_PACKAGING_INSTALL_PREFIX was initialized to 
CMAKE_INSTALL_PREFIX ?
Is there a reason why this isn't the case ?

Alex



More information about the CMake mailing list