Hi, The packaging is done from the _CPack_Packages/Linux/DEB/$CPACK_PACKAGE_NAME$CPACK_PACKAGE_NAME dir. I suppose that CPack copies the files to install from the install dir to _CPack_Packages/Linux/DEB/$CPACK_PACKAGE_NAME$CPACK_PACKAGE_NAME/$CPACK_PACKAGING_INSTALL_PREFIX
The data.tar.gz is built from _CPack_Packages/Linux/DEB/$CPACK_PACKAGE_NAME$CPACK_PACKAGE_NAME with a tar from an hardcoded "usr" directory. Because the tar can not be done like this: "tar cvf data.tar.gz ." (will in clude itself and the control files) then it's done from the created usr dir. Raph On Dec 18, 2007 6:10 PM, Alexander Neundorf <[EMAIL PROTECTED]> wrote: > 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 > >
_______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake