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

Eric Noulard eric.noulard at gmail.com
Wed Apr 3 02:08:58 EDT 2013


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/5dac7168/attachment.htm>


More information about the CMake mailing list