[CMake] Decompressing a file with cmake

AKHRES Nader nader.akhres at laposte.net
Mon Mar 8 12:51:26 EST 2010


It sounds exactly like what I need (I'm already in a cmake script) but 
I'd rather stick to an official version for my users up to now.

To answer Eric and Droscy, I manage to use an external python script to 
uncompress (I use python already for other purpose) the downloaded file 
but I'd rather use the cmake -E tar command as soon as it is available 
in release flavour.
David, have you any idea in which version it is expected to be? CMake 2.9?

Nader



Le 08/03/2010 17:49, David Cole a écrit :
> The "cmake -E tar ..." commands will decompress zip files, but only 
> with CVS from the git master branch.
>
> The functionality depends on libarchive which is in the git master 
> branch, but is not yet in a CMake release.
>
> If you need to use CMake 2.8 or earlier, you'll have to use some other 
> external tool for zip file extraction. If you can use "CMake git 
> master" then you can use cmake to do the decompression.
>
>
> HTH,
> David
>
>
> On Sat, Mar 6, 2010 at 6:33 PM, AKHRES Nader <nader.akhres at laposte.net 
> <mailto:nader.akhres at laposte.net>> wrote:
>
>     Hello,
>
>     is it possible to uncompress a zip file with cmake?
>     I use file(download...) to get a zip from an url, but I need to
>     uncompress the downloaded archive...
>
>
>     Nader
>
>     _______________________________________________
>     Powered by www.kitware.com <http://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
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100308/7bb65f00/attachment.htm>


More information about the CMake mailing list