2012/2/13 Massaro Alessio <alessio.mass...@mediobanca.co.uk>:
> Hi there
>
>
>
> The CPack ZIP generator seems to always put all “installed” files in a
> directory called ${CPACK_PACKAGE_FILE_NAME}
>
> So, if ${CPACK_PACKAGE_FILE_NAME}==”xyz”, the zip file will have one single
> “xyz” directory at the root, with all “installed” files placed therein.
>
>
>
> Does anyone know if there’s a way to switch off this behavior and have
> everything zipped at the root of the zip file? (so no “xyz” directory
> containing everything)

try
set(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)

it should do what you want.

PS: you can try on the command line as well

 cpack -D CPACK_INCLUDE_TOPLEVEL_DIRECTORY=0 -G ZIP



-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to