-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi I want to pack my files together with cpack. but they should end up to have absolute paths or atleast only stripped by the first / within the tar ball. And the packaging should be done by the user not the root.
If I put the destination to /usr/bin like here: INSTALL(TARGETS binary RUNTIME DESTINATION /usr/bin) it says that the following: CMake Error at binary/cmake_install.cmake:49 (FILE): file INSTALL cannot copy file ".../binary/binary" to "/usr/bin/binary". and if i change my install statement to: INSTALL(TARGETS binary RUNTIME DESTINATION usr/bin) then the file in the package would look like this: $ tar tvfz binary.tar.gz - -rwxr-xr-x twist/users 307131 2009-01-29 16:53 binary/usr/bin/binary I figured out that the first part in front of the /usr/bin/binary is taken from CPACK_PACKAGE_FILE_NAME put I can not put this to "/" or "" because then the filename would be /.tar.gz or ./.tar.gz, not a good way. Does anyone know how I may change it to "/" Regards Simon -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmB58sACgkQCT+234kh3agsJACcCeYrE9rW3oeYSOmDecIZKfOO 0IsAoI5gpoBLgPOtnL/83Ed3q3h36xCw =7XoF -----END PGP SIGNATURE----- _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
