Alexander Neundorf schrieb:
On Tuesday 21 April 2009, Ralf Habacker wrote:
Hi,

for a specific cmake project on windows there was 7zip cpack support
requested. The appended patch adds those support to cpack.

It works like the zip generator with one extension: It is possible to
run 7z with additional options by defining the (newly introduced)
CPACK_GENERATOR_7Z_OPTIONS variable.

What would you think about extending the current zip generator instead of adding a new 7zip generator ? An <OPTIONS> tag can be added also in CPackZIP.cmake, if necessary something could be added so that CPackZIP.cmake finds only "wzzip" or "7z" or "zip", something like CPACK_ZIP_REQUIRED_TOOL or something like this.
What do you think ?
following the currently available list of generators

Generators
 NSIS                        = Null Soft Installer
 STGZ                        = Self extracting Tar GZip compression
 TBZ2                        = Tar BZip2 compression
 TGZ                         = Tar GZip compression
 TZ                          = Tar Compress compression
 ZIP                         = ZIP file format

there should not only be 7Z added, but S7Z and SZIP too. The main question is how to specifiy the generator interface in a consistent way to be open for further extensions - currently there is a mixture of tools, archive types, compression and output formats.

Ralf






Ralf


_______________________________________________
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