[CMake] path levels in TGZ cpack generator

Magnus Therning magnus at therning.org
Sat Nov 23 03:58:29 EST 2013


On Fri, Nov 22, 2013 at 03:54:38PM +0100, Tino Keitel wrote:
> 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?

I may be missing something, but from the view of the unpacker of the
TGZ-ball the two are equivalent, right?  So why do you prefer the
'./x/...' over 'x/...'?

/M

-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4 
email: magnus at therning.org   jabber: magnus at therning.org
twitter: magthe               http://therning.org/magnus

I invented the term Object-Oriented, and I can tell you I did not have
C++ in mind.
     -- Alan Kay
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20131123/6db593da/attachment.pgp>


More information about the CMake mailing list