Finding package for 7-zip comprehension

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Finding package for 7-zip comprehension

Michael Powell
Hello,

Does anyone happen to know, is there 7-zip comprehension in CMake
today? i.e., that something like this could be done:

include (FindSevenZip.cmake)

or:

find_package (SevenZip)

I've seen mention of it in places, but could not find it formally as
part of CMake itself, it seems.

I am running the latest stable v3.9, that I know of.

Thanks!

Cheers,

Michael Powell
--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Finding package for 7-zip comprehension

Konstantin Tokarev


21.11.2017, 18:38, "Michael Powell" <[hidden email]>:

> Hello,
>
> Does anyone happen to know, is there 7-zip comprehension in CMake
> today? i.e., that something like this could be done:
>
> include (FindSevenZip.cmake)
>
> or:
>
> find_package (SevenZip)
>
> I've seen mention of it in places, but could not find it formally as
> part of CMake itself, it seems.
>
> I am running the latest stable v3.9, that I know of.

Not exactly 7-zip, but you can unpack tar.xz files via built-in cmake -E tar command

>
> Thanks!
>
> Cheers,
>
> Michael Powell
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake

--
Regards,
Konstantin
--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Finding package for 7-zip comprehension

CHEVRIER, Marc
“cmake –E tar” supports 7-zip format. Use option –format=7zip (see https://cmake.org/cmake/help/v3.9/manual/cmake.1.html).


On 21/11/2017 16:43, "CMake on behalf of Konstantin Tokarev" <[hidden email] on behalf of [hidden email]> wrote:

   
   
    21.11.2017, 18:38, "Michael Powell" <[hidden email]>:
    > Hello,
    >
    > Does anyone happen to know, is there 7-zip comprehension in CMake
    > today? i.e., that something like this could be done:
    >
    > include (FindSevenZip.cmake)
    >
    > or:
    >
    > find_package (SevenZip)
    >
    > I've seen mention of it in places, but could not find it formally as
    > part of CMake itself, it seems.
    >
    > I am running the latest stable v3.9, that I know of.
   
    Not exactly 7-zip, but you can unpack tar.xz files via built-in cmake -E tar command
   
    >
    > Thanks!
    >
    > Cheers,
    >
    > Michael Powell
    > --
    >
    > Powered by www.kitware.com
    >
    > Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
    >
    > Kitware offers various services to support the CMake community. For more information on each offering, please visit:
    >
    > CMake Support: http://cmake.org/cmake/help/support.html
    > CMake Consulting: http://cmake.org/cmake/help/consulting.html
    > CMake Training Courses: http://cmake.org/cmake/help/training.html
    >
    > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
    >
    > Follow this link to subscribe/unsubscribe:
    > http://public.kitware.com/mailman/listinfo/cmake
   
    --
    Regards,
    Konstantin
    --
   
    Powered by www.kitware.com
   
    Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
   
    Kitware offers various services to support the CMake community. For more information on each offering, please visit:
   
    CMake Support: http://cmake.org/cmake/help/support.html
    CMake Consulting: http://cmake.org/cmake/help/consulting.html
    CMake Training Courses: http://cmake.org/cmake/help/training.html
   
    Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
   
    Follow this link to subscribe/unsubscribe:
    http://public.kitware.com/mailman/listinfo/cmake
   

--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Finding package for 7-zip comprehension

Michael Powell
In reply to this post by Konstantin Tokarev
On Tue, Nov 21, 2017 at 10:43 AM, Konstantin Tokarev <[hidden email]> wrote:

>
>
> 21.11.2017, 18:38, "Michael Powell" <[hidden email]>:
>> Hello,
>>
>> Does anyone happen to know, is there 7-zip comprehension in CMake
>> today? i.e., that something like this could be done:
>>
>> include (FindSevenZip.cmake)
>>
>> or:
>>
>> find_package (SevenZip)
>>
>> I've seen mention of it in places, but could not find it formally as
>> part of CMake itself, it seems.
>>
>> I am running the latest stable v3.9, that I know of.
>
> Not exactly 7-zip, but you can unpack tar.xz files via built-in cmake -E tar command

It's good to know, but I've already got tar identified. Perhaps not
"kosher", at least from what I'm reading about how to FindXyz, and the
Xyx_FOUND and Xyz_EXECUTABLE perspective.

However, no, what I am interested in is 7-zip, specifically. I have my reasons.

Thank you!

>> Thanks!
>>
>> Cheers,
>>
>> Michael Powell
>> --
>>
>> Powered by www.kitware.com
>>
>> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>
>> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>>
>> CMake Support: http://cmake.org/cmake/help/support.html
>> CMake Consulting: http://cmake.org/cmake/help/consulting.html
>> CMake Training Courses: http://cmake.org/cmake/help/training.html
>>
>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>> Follow this link to subscribe/unsubscribe:
>> http://public.kitware.com/mailman/listinfo/cmake
>
> --
> Regards,
> Konstantin
--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Finding package for 7-zip comprehension

Michael Powell
In reply to this post by CHEVRIER, Marc
On Tue, Nov 21, 2017 at 10:47 AM, CHEVRIER, Marc <[hidden email]> wrote:
> “cmake –E tar” supports 7-zip format. Use option –format=7zip (see https://cmake.org/cmake/help/v3.9/manual/cmake.1.html).

Ah! This I did not know. Thanks for pointing that out!

> On 21/11/2017 16:43, "CMake on behalf of Konstantin Tokarev" <[hidden email] on behalf of [hidden email]> wrote:
>
>
>
>     21.11.2017, 18:38, "Michael Powell" <[hidden email]>:
>     > Hello,
>     >
>     > Does anyone happen to know, is there 7-zip comprehension in CMake
>     > today? i.e., that something like this could be done:
>     >
>     > include (FindSevenZip.cmake)
>     >
>     > or:
>     >
>     > find_package (SevenZip)
>     >
>     > I've seen mention of it in places, but could not find it formally as
>     > part of CMake itself, it seems.
>     >
>     > I am running the latest stable v3.9, that I know of.
>
>     Not exactly 7-zip, but you can unpack tar.xz files via built-in cmake -E tar command
>
>     >
>     > Thanks!
>     >
>     > Cheers,
>     >
>     > Michael Powell
>     > --
>     >
>     > Powered by www.kitware.com
>     >
>     > Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>     >
>     > Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>     >
>     > CMake Support: http://cmake.org/cmake/help/support.html
>     > CMake Consulting: http://cmake.org/cmake/help/consulting.html
>     > CMake Training Courses: http://cmake.org/cmake/help/training.html
>     >
>     > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>     >
>     > Follow this link to subscribe/unsubscribe:
>     > http://public.kitware.com/mailman/listinfo/cmake
>
>     --
>     Regards,
>     Konstantin
>     --
>
>     Powered by www.kitware.com
>
>     Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
>     Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>
>     CMake Support: http://cmake.org/cmake/help/support.html
>     CMake Consulting: http://cmake.org/cmake/help/consulting.html
>     CMake Training Courses: http://cmake.org/cmake/help/training.html
>
>     Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
>     Follow this link to subscribe/unsubscribe:
>     http://public.kitware.com/mailman/listinfo/cmake
>
>
--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Finding package for 7-zip comprehension

Michael Powell
On Tue, Nov 21, 2017 at 10:49 AM, Michael Powell <[hidden email]> wrote:
> On Tue, Nov 21, 2017 at 10:47 AM, CHEVRIER, Marc <[hidden email]> wrote:
>> “cmake –E tar” supports 7-zip format. Use option –format=7zip (see https://cmake.org/cmake/help/v3.9/manual/cmake.1.html).
>
> Ah! This I did not know. Thanks for pointing that out!

Well, the version of Tar I am working with does not seem to have this
feature implemented? I could be wrong, unless it is undocumented.

Based on the version (1.29?) adopted in the Git for Windows distribution.

C:\Dev\Git\usr\bin\tar.exe --help | C:\Dev\Git\usr\bin\grep.exe zip
  -j, --bzip2                filter the archive through bzip2
      --lzip                 filter the archive through lzip
  -z, --gzip, --gunzip, --ungzip   filter the archive through gzip

G:\Source\Boost.Build\Prototype\repos\boost-1.65.1>C:\Dev\Git\usr\bin\tar.exe --
help | C:\Dev\Git\usr\bin\grep.exe zip
  -j, --bzip2                filter the archive through bzip2
      --lzip                 filter the archive through lzip
  -z, --gzip, --gunzip, --ungzip   filter the archive through gzip

C:\Dev\Git\usr\bin\tar.exe --help | C:\Dev\Git\usr\bin\grep.exe format
  -g, --listed-incremental=FILE   handle new GNU-format incremental backup
  -G, --incremental          handle old GNU-format incremental backup
                             set version of the sparse format to use (implies
                             extract information about file permissions
 Archive format selection:
  -H, --format=FORMAT        create archive of the given format
    gnu                      GNU tar 1.13.x format
    oldgnu                   GNU format as per tar <= 1.12
    pax                      POSIX 1003.1-2001 (pax) format
    ustar                    POSIX 1003.1-1988 (ustar) format
    v7                       old V7 tar format
                             same as --format=v7
      --posix                same as --format=posix
 File name transformations:
 Informative output:
                             show file or archive names after transformation
--format=gnu -f- -b20 --quoting-style=escape

>> On 21/11/2017 16:43, "CMake on behalf of Konstantin Tokarev" <[hidden email] on behalf of [hidden email]> wrote:
>>
>>
>>
>>     21.11.2017, 18:38, "Michael Powell" <[hidden email]>:
>>     > Hello,
>>     >
>>     > Does anyone happen to know, is there 7-zip comprehension in CMake
>>     > today? i.e., that something like this could be done:
>>     >
>>     > include (FindSevenZip.cmake)
>>     >
>>     > or:
>>     >
>>     > find_package (SevenZip)
>>     >
>>     > I've seen mention of it in places, but could not find it formally as
>>     > part of CMake itself, it seems.
>>     >
>>     > I am running the latest stable v3.9, that I know of.
>>
>>     Not exactly 7-zip, but you can unpack tar.xz files via built-in cmake -E tar command
>>
>>     >
>>     > Thanks!
>>     >
>>     > Cheers,
>>     >
>>     > Michael Powell
>>     > --
>>     >
>>     > Powered by www.kitware.com
>>     >
>>     > Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>     >
>>     > Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>>     >
>>     > CMake Support: http://cmake.org/cmake/help/support.html
>>     > CMake Consulting: http://cmake.org/cmake/help/consulting.html
>>     > CMake Training Courses: http://cmake.org/cmake/help/training.html
>>     >
>>     > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>     >
>>     > Follow this link to subscribe/unsubscribe:
>>     > http://public.kitware.com/mailman/listinfo/cmake
>>
>>     --
>>     Regards,
>>     Konstantin
>>     --
>>
>>     Powered by www.kitware.com
>>
>>     Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>
>>     Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>>
>>     CMake Support: http://cmake.org/cmake/help/support.html
>>     CMake Consulting: http://cmake.org/cmake/help/consulting.html
>>     CMake Training Courses: http://cmake.org/cmake/help/training.html
>>
>>     Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>
>>     Follow this link to subscribe/unsubscribe:
>>     http://public.kitware.com/mailman/listinfo/cmake
>>
>>
--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Finding package for 7-zip comprehension

Konstantin Tokarev


21.11.2017, 18:54, "Michael Powell" <[hidden email]>:
> On Tue, Nov 21, 2017 at 10:49 AM, Michael Powell <[hidden email]> wrote:
>>  On Tue, Nov 21, 2017 at 10:47 AM, CHEVRIER, Marc <[hidden email]> wrote:
>>>  “cmake –E tar” supports 7-zip format. Use option –format=7zip (see https://cmake.org/cmake/help/v3.9/manual/cmake.1.html).
>>
>>  Ah! This I did not know. Thanks for pointing that out!
>
> Well, the version of Tar I am working with does not seem to have this
> feature implemented? I could be wrong, unless it is undocumented.

You are using GNU tar, while CMake uses libarchive (which is a core of more powerful BSD tar)

>
> Based on the version (1.29?) adopted in the Git for Windows distribution.
>
> C:\Dev\Git\usr\bin\tar.exe --help | C:\Dev\Git\usr\bin\grep.exe zip
>   -j, --bzip2 filter the archive through bzip2
>       --lzip filter the archive through lzip
>   -z, --gzip, --gunzip, --ungzip filter the archive through gzip
>
> G:\Source\Boost.Build\Prototype\repos\boost-1.65.1>C:\Dev\Git\usr\bin\tar.exe --
> help | C:\Dev\Git\usr\bin\grep.exe zip
>   -j, --bzip2 filter the archive through bzip2
>       --lzip filter the archive through lzip
>   -z, --gzip, --gunzip, --ungzip filter the archive through gzip
>
> C:\Dev\Git\usr\bin\tar.exe --help | C:\Dev\Git\usr\bin\grep.exe format
>   -g, --listed-incremental=FILE handle new GNU-format incremental backup
>   -G, --incremental handle old GNU-format incremental backup
>                              set version of the sparse format to use (implies
>                              extract information about file permissions
>  Archive format selection:
>   -H, --format=FORMAT create archive of the given format
>     gnu GNU tar 1.13.x format
>     oldgnu GNU format as per tar <= 1.12
>     pax POSIX 1003.1-2001 (pax) format
>     ustar POSIX 1003.1-1988 (ustar) format
>     v7 old V7 tar format
>                              same as --format=v7
>       --posix same as --format=posix
>  File name transformations:
>  Informative output:
>                              show file or archive names after transformation
> --format=gnu -f- -b20 --quoting-style=escape
>
>>>  On 21/11/2017 16:43, "CMake on behalf of Konstantin Tokarev" <[hidden email] on behalf of [hidden email]> wrote:
>>>
>>>      21.11.2017, 18:38, "Michael Powell" <[hidden email]>:
>>>      > Hello,
>>>      >
>>>      > Does anyone happen to know, is there 7-zip comprehension in CMake
>>>      > today? i.e., that something like this could be done:
>>>      >
>>>      > include (FindSevenZip.cmake)
>>>      >
>>>      > or:
>>>      >
>>>      > find_package (SevenZip)
>>>      >
>>>      > I've seen mention of it in places, but could not find it formally as
>>>      > part of CMake itself, it seems.
>>>      >
>>>      > I am running the latest stable v3.9, that I know of.
>>>
>>>      Not exactly 7-zip, but you can unpack tar.xz files via built-in cmake -E tar command
>>>
>>>      >
>>>      > Thanks!
>>>      >
>>>      > Cheers,
>>>      >
>>>      > Michael Powell
>>>      > --
>>>      >
>>>      > Powered by www.kitware.com
>>>      >
>>>      > Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>>      >
>>>      > Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>>>      >
>>>      > CMake Support: http://cmake.org/cmake/help/support.html
>>>      > CMake Consulting: http://cmake.org/cmake/help/consulting.html
>>>      > CMake Training Courses: http://cmake.org/cmake/help/training.html
>>>      >
>>>      > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>      >
>>>      > Follow this link to subscribe/unsubscribe:
>>>      > http://public.kitware.com/mailman/listinfo/cmake
>>>
>>>      --
>>>      Regards,
>>>      Konstantin
>>>      --
>>>
>>>      Powered by www.kitware.com
>>>
>>>      Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>>
>>>      Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>>>
>>>      CMake Support: http://cmake.org/cmake/help/support.html
>>>      CMake Consulting: http://cmake.org/cmake/help/consulting.html
>>>      CMake Training Courses: http://cmake.org/cmake/help/training.html
>>>
>>>      Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>
>>>      Follow this link to subscribe/unsubscribe:
>>>      http://public.kitware.com/mailman/listinfo/cmake
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake

--
Regards,
Konstantin
--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Finding package for 7-zip comprehension

Michael Powell
In reply to this post by Michael Powell
On Tue, Nov 21, 2017 at 10:54 AM, Michael Powell <[hidden email]> wrote:
> On Tue, Nov 21, 2017 at 10:49 AM, Michael Powell <[hidden email]> wrote:
>> On Tue, Nov 21, 2017 at 10:47 AM, CHEVRIER, Marc <[hidden email]> wrote:
>>> “cmake –E tar” supports 7-zip format. Use option –format=7zip (see https://cmake.org/cmake/help/v3.9/manual/cmake.1.html).
>>
>> Ah! This I did not know. Thanks for pointing that out!

Oh, duh. I get it. CMake has this built in.

> Well, the version of Tar I am working with does not seem to have this
> feature implemented? I could be wrong, unless it is undocumented.
>
> Based on the version (1.29?) adopted in the Git for Windows distribution.
>
> C:\Dev\Git\usr\bin\tar.exe --help | C:\Dev\Git\usr\bin\grep.exe zip
>   -j, --bzip2                filter the archive through bzip2
>       --lzip                 filter the archive through lzip
>   -z, --gzip, --gunzip, --ungzip   filter the archive through gzip
>
> G:\Source\Boost.Build\Prototype\repos\boost-1.65.1>C:\Dev\Git\usr\bin\tar.exe --
> help | C:\Dev\Git\usr\bin\grep.exe zip
>   -j, --bzip2                filter the archive through bzip2
>       --lzip                 filter the archive through lzip
>   -z, --gzip, --gunzip, --ungzip   filter the archive through gzip
>
> C:\Dev\Git\usr\bin\tar.exe --help | C:\Dev\Git\usr\bin\grep.exe format
>   -g, --listed-incremental=FILE   handle new GNU-format incremental backup
>   -G, --incremental          handle old GNU-format incremental backup
>                              set version of the sparse format to use (implies
>                              extract information about file permissions
>  Archive format selection:
>   -H, --format=FORMAT        create archive of the given format
>     gnu                      GNU tar 1.13.x format
>     oldgnu                   GNU format as per tar <= 1.12
>     pax                      POSIX 1003.1-2001 (pax) format
>     ustar                    POSIX 1003.1-1988 (ustar) format
>     v7                       old V7 tar format
>                              same as --format=v7
>       --posix                same as --format=posix
>  File name transformations:
>  Informative output:
>                              show file or archive names after transformation
> --format=gnu -f- -b20 --quoting-style=escape
>
>>> On 21/11/2017 16:43, "CMake on behalf of Konstantin Tokarev" <[hidden email] on behalf of [hidden email]> wrote:
>>>
>>>
>>>
>>>     21.11.2017, 18:38, "Michael Powell" <[hidden email]>:
>>>     > Hello,
>>>     >
>>>     > Does anyone happen to know, is there 7-zip comprehension in CMake
>>>     > today? i.e., that something like this could be done:
>>>     >
>>>     > include (FindSevenZip.cmake)
>>>     >
>>>     > or:
>>>     >
>>>     > find_package (SevenZip)
>>>     >
>>>     > I've seen mention of it in places, but could not find it formally as
>>>     > part of CMake itself, it seems.
>>>     >
>>>     > I am running the latest stable v3.9, that I know of.
>>>
>>>     Not exactly 7-zip, but you can unpack tar.xz files via built-in cmake -E tar command
>>>
>>>     >
>>>     > Thanks!
>>>     >
>>>     > Cheers,
>>>     >
>>>     > Michael Powell
>>>     > --
>>>     >
>>>     > Powered by www.kitware.com
>>>     >
>>>     > Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>>     >
>>>     > Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>>>     >
>>>     > CMake Support: http://cmake.org/cmake/help/support.html
>>>     > CMake Consulting: http://cmake.org/cmake/help/consulting.html
>>>     > CMake Training Courses: http://cmake.org/cmake/help/training.html
>>>     >
>>>     > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>     >
>>>     > Follow this link to subscribe/unsubscribe:
>>>     > http://public.kitware.com/mailman/listinfo/cmake
>>>
>>>     --
>>>     Regards,
>>>     Konstantin
>>>     --
>>>
>>>     Powered by www.kitware.com
>>>
>>>     Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>>
>>>     Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>>>
>>>     CMake Support: http://cmake.org/cmake/help/support.html
>>>     CMake Consulting: http://cmake.org/cmake/help/consulting.html
>>>     CMake Training Courses: http://cmake.org/cmake/help/training.html
>>>
>>>     Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>
>>>     Follow this link to subscribe/unsubscribe:
>>>     http://public.kitware.com/mailman/listinfo/cmake
>>>
>>>
--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Reply | Threaded
Open this post in threaded view
|

Re: Finding package for 7-zip comprehension

Michael Powell
Okay, this seems great for Zip and for 7z. My guess is it is an open
issue for Gzip?

https://cmake.org/Bug/view.php?id=10973 (0010973: Add a cmake -E
command to access gzip/gunzip)

On Tue, Nov 21, 2017 at 10:58 AM, Michael Powell <[hidden email]> wrote:

> On Tue, Nov 21, 2017 at 10:54 AM, Michael Powell <[hidden email]> wrote:
>> On Tue, Nov 21, 2017 at 10:49 AM, Michael Powell <[hidden email]> wrote:
>>> On Tue, Nov 21, 2017 at 10:47 AM, CHEVRIER, Marc <[hidden email]> wrote:
>>>> “cmake –E tar” supports 7-zip format. Use option –format=7zip (see https://cmake.org/cmake/help/v3.9/manual/cmake.1.html).
>>>
>>> Ah! This I did not know. Thanks for pointing that out!
>
> Oh, duh. I get it. CMake has this built in.
>
>> Well, the version of Tar I am working with does not seem to have this
>> feature implemented? I could be wrong, unless it is undocumented.
>>
>> Based on the version (1.29?) adopted in the Git for Windows distribution.
>>
>> C:\Dev\Git\usr\bin\tar.exe --help | C:\Dev\Git\usr\bin\grep.exe zip
>>   -j, --bzip2                filter the archive through bzip2
>>       --lzip                 filter the archive through lzip
>>   -z, --gzip, --gunzip, --ungzip   filter the archive through gzip
>>
>> G:\Source\Boost.Build\Prototype\repos\boost-1.65.1>C:\Dev\Git\usr\bin\tar.exe --
>> help | C:\Dev\Git\usr\bin\grep.exe zip
>>   -j, --bzip2                filter the archive through bzip2
>>       --lzip                 filter the archive through lzip
>>   -z, --gzip, --gunzip, --ungzip   filter the archive through gzip
>>
>> C:\Dev\Git\usr\bin\tar.exe --help | C:\Dev\Git\usr\bin\grep.exe format
>>   -g, --listed-incremental=FILE   handle new GNU-format incremental backup
>>   -G, --incremental          handle old GNU-format incremental backup
>>                              set version of the sparse format to use (implies
>>                              extract information about file permissions
>>  Archive format selection:
>>   -H, --format=FORMAT        create archive of the given format
>>     gnu                      GNU tar 1.13.x format
>>     oldgnu                   GNU format as per tar <= 1.12
>>     pax                      POSIX 1003.1-2001 (pax) format
>>     ustar                    POSIX 1003.1-1988 (ustar) format
>>     v7                       old V7 tar format
>>                              same as --format=v7
>>       --posix                same as --format=posix
>>  File name transformations:
>>  Informative output:
>>                              show file or archive names after transformation
>> --format=gnu -f- -b20 --quoting-style=escape
>>
>>>> On 21/11/2017 16:43, "CMake on behalf of Konstantin Tokarev" <[hidden email] on behalf of [hidden email]> wrote:
>>>>
>>>>
>>>>
>>>>     21.11.2017, 18:38, "Michael Powell" <[hidden email]>:
>>>>     > Hello,
>>>>     >
>>>>     > Does anyone happen to know, is there 7-zip comprehension in CMake
>>>>     > today? i.e., that something like this could be done:
>>>>     >
>>>>     > include (FindSevenZip.cmake)
>>>>     >
>>>>     > or:
>>>>     >
>>>>     > find_package (SevenZip)
>>>>     >
>>>>     > I've seen mention of it in places, but could not find it formally as
>>>>     > part of CMake itself, it seems.
>>>>     >
>>>>     > I am running the latest stable v3.9, that I know of.
>>>>
>>>>     Not exactly 7-zip, but you can unpack tar.xz files via built-in cmake -E tar command
>>>>
>>>>     >
>>>>     > Thanks!
>>>>     >
>>>>     > Cheers,
>>>>     >
>>>>     > Michael Powell
>>>>     > --
>>>>     >
>>>>     > Powered by www.kitware.com
>>>>     >
>>>>     > Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>>>     >
>>>>     > Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>>>>     >
>>>>     > CMake Support: http://cmake.org/cmake/help/support.html
>>>>     > CMake Consulting: http://cmake.org/cmake/help/consulting.html
>>>>     > CMake Training Courses: http://cmake.org/cmake/help/training.html
>>>>     >
>>>>     > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>>     >
>>>>     > Follow this link to subscribe/unsubscribe:
>>>>     > http://public.kitware.com/mailman/listinfo/cmake
>>>>
>>>>     --
>>>>     Regards,
>>>>     Konstantin
>>>>     --
>>>>
>>>>     Powered by www.kitware.com
>>>>
>>>>     Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
>>>>
>>>>     Kitware offers various services to support the CMake community. For more information on each offering, please visit:
>>>>
>>>>     CMake Support: http://cmake.org/cmake/help/support.html
>>>>     CMake Consulting: http://cmake.org/cmake/help/consulting.html
>>>>     CMake Training Courses: http://cmake.org/cmake/help/training.html
>>>>
>>>>     Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
>>>>
>>>>     Follow this link to subscribe/unsubscribe:
>>>>     http://public.kitware.com/mailman/listinfo/cmake
>>>>
>>>>
--

Powered by www.kitware.com

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

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake