[CMake] path levels in TGZ cpack generator

Tino Keitel tino.keitel at alcnetworx.de
Fri Nov 22 09:54:38 EST 2013


Hi,

for integration in an existing build infrastructure, I want to use cpack
with the TGZ generator to create packages that have the current
directory (./) as the first path component. The content of the archive
would look like this:

$ tar tf test.tar.gz
./x/
./x/foo

cpack currently creates packages without this component, such that the
archive looks like this:

$ tar tf test.tar.gz
x/
x/foo

How can I configure cpack to create archives with a directory structure
like in the first example above?

Regards,
Tino




More information about the CMake mailing list