MantisBT - CMake
View Issue Details
0014504CMakeCMakepublic2013-10-22 14:462015-01-05 08:39
Aaron Nowack 
 
lowfeaturehave not tried
closedfixed 
MicrosoftWindows 7
CMake 2.8.12 
CMake 3.1CMake 3.1 
0014504: libarchive supports 7-Zip, Add 7-Zip support to cmake
As I understand cmake uses libarchive for inflating tar.gz files. This is useful within ExternalProject_Add as you can pass in a URL of a tar.gz and cmake handles it. Since libarchive _also_ supports inflating 7z formats can cmake also support it?

For example, I wanted to use ExternalProject_Add with a custom build & install step to setup the libusbx binaries [1] on windows but they are in 7z format.

[1] http://sourceforge.net/projects/libusbx/files/releases/1.0.17/binaries/ [^]
ExternalProject_Add(
  URL <path to 7z archive>
  ...
)

Is not supported
libarchive supports 7-zip , https://github.com/libarchive/libarchive [^]
No tags attached.
related to 0013515closed  ExternalProject doesn’t handle .tar.xz 
has duplicate 0014519closed  7z ( LZMA and LZMA2) support for cpack 
has duplicate 0014527closed  Provide xz and lz support to ExternalProject module 
related to 0014318closed  ExternalProject module needs small patch to allow unpacking of *.tar.xz files 
Issue History
2013-10-22 14:46Aaron NowackNew Issue
2013-10-22 15:00Brad KingNote Added: 0034219
2013-10-22 16:42Eric NOULARDRelationship addedrelated to 0013515
2013-10-22 16:43Eric NOULARDNote Added: 0034220
2013-10-22 16:45Eric NOULARDNote Edited: 0034220bug_revision_view_page.php?bugnote_id=34220#r1295
2013-10-29 03:17Eric NOULARDRelationship addedhas duplicate 0014519
2013-10-31 09:56Rolf Eike BeerRelationship addedhas duplicate 0014527
2014-04-09 15:20Brad KingRelationship addedrelated to 0014318
2014-07-30 09:37Brad KingNote Added: 0036500
2014-07-30 09:37Brad KingStatusnew => resolved
2014-07-30 09:37Brad KingResolutionopen => fixed
2014-07-30 09:37Brad KingFixed in Version => CMake 3.1
2014-07-30 09:37Brad KingTarget Version => CMake 3.1
2015-01-05 08:39Robert MaynardNote Added: 0037597
2015-01-05 08:39Robert MaynardStatusresolved => closed

Notes
(0034219)
Brad King   
2013-10-22 15:00   
IIUC libarchive requires liblzma from http://tukaani.org/xz/ [^] to support 7z formats. This will have to be brought in to the CMake build similar to these:

 Utilities/cmbzip2/
 Utilities/cmcompress/
 Utilities/cmzlib/

with corresponding support for using a system-installed liblzma too.
(0034220)
Eric NOULARD   
2013-10-22 16:43   
(edited on: 2013-10-22 16:45)
The xz/lzma support keeps poping up as feature request.
See related bug/feature requests.

In particular comment:
http://cmake.org/Bug/view.php?id=13072#c29027 [^]

(0036500)
Brad King   
2014-07-30 09:37   
After a contributor ported liblzma to C89/90 for us we are finally able to implement lzma support in "cmake -E tar" and ExternalProject:

 CMake: Enable use of liblzma in libarchive
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=8436d181 [^]

 ExternalProject: Recognize lzma-compressed files
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=56e6975c [^]
(0037597)
Robert Maynard   
2015-01-05 08:39   
Closing resolved issues that have not been updated in more than 4 months