Le mardi 25 septembre 2007 à 19:54 -0700, Alan W. Irwin a écrit : > On 2007-09-25 20:14-0500 Javier Gonzalez wrote: > > > Hi all, > > > > I just started using cmake and it seems I can't figure out how to use > > CPack. The documentation in the wiki page didn't help much. > > > > I can do make, make install and it all works all right but if I do make > > package I get and empty package (a tar ball with nothing in it). > > "make package" does not work (produces empty results rather than the desired > binary package) for absolute install prefixes. You could use relative > install locations (see the documentation of the INSTALL command), or if you > must use absolute install locations (as in the PLplot case) there is a > simple patch to the cmake core that makes "make package" work in that case, > see bug report 4993. > > To Bill Hoffman (who has been assigned this bug) . When is this simple > patch going to be available in at least the cvs version?
Hi, You could have a look at bug 5257 which provides a better fix. cpack provides two ways to build binary packages : - using CMAKE_INSTALL_PREFIX (so called movable packages) - using DESTDIR and whole destination filename. This patch provides a CPACK_MOVABLE_PACKAGE boolean than can be set to TRUE to enable full hardcoded name working. BTW I don't consider current behavior buggy. I'm currently using it as it provides a way to have relocatable packages build straight away with the right directory structure. But indeed non CMAKE_INSTALL_PREFIX prefixed path (i.e. absolute ones) does not work with it. Bill could you have a look at this patch ? Thomas _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
