Where does the extraction end up?

Or does it fail regardless of the WORKING_DIRECTORY argument?

Use :

   execute_process(... RESULT_VARIABLE rv)
   message("rv='${rv}'")

to see what the return value of CMake is.

Is there an error message when trying to extract the tar file?



-----Original Message-----
From: Saad Khattak <saadrus...@gmail.com>
To: CMake Mailing List <cmake@cmake.org>
Sent: Mon, Apr 1, 2013 6:06 pm
Subject: [CMake] CMake extracting tar via execute_process does not allow extraction in subdirectories


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



--

Powered by 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

--

Powered by 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

Reply via email to