<div dir="ltr">Hi,<div><br></div><div>I'm having a bit of an issue with the behaviour of the TGZ generator and componentized packagings. The generation of the packages for the various components works just fine, but unfortunately the contents are not as I'd like them to be.</div>
<div><br></div><div>It seems like the TGZ generator drops the 'common' prefix from the packages, i.e. my packages have</div><div><br></div><div>bin/foobar</div><div>lib/libfoobar.so</div><div><br></div><div>in them, instead of</div>
<div><br></div><div>mypackage-1.0.0-Linux32/bin/foobar</div><div>mypackage-1.0.0-Linux32/lib/libfoobar.so<br></div><div><br></div><div>This is quite annoying extacting the packages pollutes a users system in a way that makes it hard to remove the stuff again. Its also different from the behaviour when disabling componentized packaging, there TGZ adds the prefix just fine.</div>
<div><br></div><div>I've tried avoiding this with CPACK_INCLUDE_TOPLEVEL_DIRECTORIES set to 1, but that seems to make no difference. Am I overlooking something in the docs of CMake/CPack that can be tuned to get the behaviour that I want?</div>
<div><br></div><div>Andreas</div></div>