Hi,<br>After looking at the source code I found in CPack/cmCPackDebGenerator.cxx that if CPACK_PACKAGING_INSTALL_PREFIX is not set then it is set to "/usr".<br>Then the data.tar.gz is creating from directory usr.
<br>First this code will give an understandable error if the user sets CPACK_PACKAGING_INSTALL_PREFIX to something else than "/usr".<br>Secondly this doesn't allow the debian package to install files anywhere.
<br><br>This insertion of a usr directory is done I suppose to allow the tar command not to add the control, debian-binary, and itself.<br>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.
<br>This of course can be optimised.<br><br>This way actually works for me. Is there any other reason to do the insertion of the usr directory?<br><br>Raphael<br><br><br><br>