[CMake] CMake extracting tar via execute_process does not allow extraction in subdirectories

Saad Khattak saadrustam at gmail.com
Wed Apr 3 13:05:05 EDT 2013


I am using version 2.8.8. I am running Windows 7 and do not use cygwin,
only native CMake.

cd Z:/engine/src/mySDK
> cmake -E tar xvf ../mySDK.tar.gz


That works. The tar is successfully extracted to the mySDK folder. As
before, it appears it can only extract to the current directory.

- Saad


On Wed, Apr 3, 2013 at 2:08 AM, Eric Noulard <eric.noulard at gmail.com> wrote:

>
>
>
> 2013/4/3 Saad Khattak <saadrustam at gmail.com>
>
>> That prints the directory in the console:
>>
>> Z:/engine/src/mySDK
>>
>> But did not extract to it. Note that mySDK exists, and the tar is in the
>> 'src' folder and I am able to extract in the 'src' folder properly.
>>
>
> Ok this is weird.
>
> Which version of CMake are you using? (try cmake --version)
> You seem to be running on a Windows host,
> do you use native CMake or some combination of cygwin and cygwin cmake?
>
> Which cmake generator are you using? (Visual Studio xxx, MinGW, ...)
>
> Is cmake able to untar "manually" i.e. could you try that:
>
> cd Z:/engine/src/mySDK
> cmake -E tar xvf ../mySDK.tar.gz
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130403/519b896b/attachment.htm>


More information about the CMake mailing list