Mercurial > hg > orthanc
changeset 2002:785588df2518
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 06 Jun 2016 17:28:32 +0200 |
parents | 1d3a7c7d84c1 |
children | f11e5d200c04 |
files | Resources/CMake/DownloadPackage.cmake |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/Resources/CMake/DownloadPackage.cmake Mon Jun 06 16:32:32 2016 +0200 +++ b/Resources/CMake/DownloadPackage.cmake Mon Jun 06 17:28:32 2016 +0200 @@ -142,6 +142,12 @@ WORKING_DIRECTORY ${CMAKE_BINARY_DIR} RESULT_VARIABLE Failure ) + elseif ("${TMP_EXTENSION}" STREQUAL "xz") + execute_process( + COMMAND sh -c "${TAR_EXECUTABLE} xf ${TMP_PATH}" + WORKING_DIRECTORY ${CMAKE_BINARY_DIR} + RESULT_VARIABLE Failure + ) else() message(FATAL_ERROR "Unknown package format.") endif()