Mercurial > hg > orthanc
comparison Resources/CMake/DownloadPackage.cmake @ 3423:f5fe6d08f910
improving single file uncompression on Windows
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 13 Jun 2019 16:37:20 +0200 |
parents | 5d78df37c62f |
children | ffd20cdfa82c |
comparison
equal
deleted
inserted
replaced
3422:8b4169a88039 | 3423:f5fe6d08f910 |
---|---|
220 # How to silently extract files using 7-zip | 220 # How to silently extract files using 7-zip |
221 # http://superuser.com/questions/331148/7zip-command-line-extract-silently-quietly | 221 # http://superuser.com/questions/331148/7zip-command-line-extract-silently-quietly |
222 | 222 |
223 if ("${TMP_EXTENSION}" STREQUAL "gz") | 223 if ("${TMP_EXTENSION}" STREQUAL "gz") |
224 execute_process( | 224 execute_process( |
225 COMMAND ${ZIP_EXECUTABLE} e -y ${TMP_PATH} | 225 # "-so" writes uncompressed file to stdout |
226 COMMAND ${ZIP_EXECUTABLE} e -so -y ${TMP_PATH} | |
227 OUTPUT_FILE "${TargetFile}" | |
226 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} | 228 WORKING_DIRECTORY ${CMAKE_BINARY_DIR} |
227 RESULT_VARIABLE Failure | 229 RESULT_VARIABLE Failure |
228 OUTPUT_QUIET | 230 OUTPUT_QUIET |
229 ) | 231 ) |
230 | 232 |