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

Saad Khattak saadrustam at gmail.com
Mon Apr 1 18:05:42 EDT 2013


Hi,

If I have the following command:

  execute_process(
    COMMAND ${CMAKE_COMMAND} -E tar xzf mySDK.tar.gz
    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
    )

the extraction works and extracts the tar in the current directory. But
this:

  execute_process(
    COMMAND ${CMAKE_COMMAND} -E tar xzf mySDK.tar.gz
    WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/someSubdirectory
    )

fails to extract into 'someDirectory' (even if it already exists - although
it 'should' create the directory for me).

Am I misunderstanding some commands?

Thanks,
Saad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130401/2e092c76/attachment.htm>


More information about the CMake mailing list