2009/5/20 Jaroslav Gresula <[email protected]>:
>
> Hi,
>
> can CPack generate a package (zip, bz2) whose file name differs from the
> package top level directory name?
>
> For instance, when I set CPACK_PACKAGE_FILE_NAME to project-1.0.0.src,
> then the name of the package is project-1.0.0.src.tar.bz2 and the top
> level directory is project-1.0.0.src/. However, I want it to be
> project-1.0.0/.

Currently I don't know if you may "rename it" but at least you can suppress it:

SET(CPACK_INCLUDE_TOPLEVEL_DIRECTORY 0)

> I couldn't find any CPack variable that would allow to specify the top
> level directory name. Any help would be appreciated.

Neither do I but you have a look to the source in order to have a
sharper idea :-)

CMake/Source/CPack/cmCPackGenerator.[h|cxx]   --> the root generator class
CMake/Source/CPack/cmCPackZIPGenerator.[h|cxx] --> the ZIP specialized class.


-- 
Erk
_______________________________________________
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