From 50b651655d5ceaf86537511545f8ef46d9733584 Mon Sep 17 00:00:00 2001 From: jodrescher Date: Thu, 21 Sep 2017 14:00:43 +0200 Subject: [PATCH] Update OpenCVDownload.cmake unpack Added new "f" flag to the tar unpack, because without it doesn't complete, an compile fails --- cmake/OpenCVDownload.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/OpenCVDownload.cmake b/cmake/OpenCVDownload.cmake index 67a416cb4b..7b406390cc 100644 --- a/cmake/OpenCVDownload.cmake +++ b/cmake/OpenCVDownload.cmake @@ -216,7 +216,7 @@ ${OPENCV_DOWNLOAD_LOG} ocv_download_log("#mkdir \"${DL_DESTINATION_DIR}\"") file(MAKE_DIRECTORY "${DL_DESTINATION_DIR}") ocv_download_log("#unpack \"${DL_DESTINATION_DIR}\" \"${CACHE_CANDIDATE}\"") - execute_process(COMMAND "${CMAKE_COMMAND}" -E tar xz "${CACHE_CANDIDATE}" + execute_process(COMMAND "${CMAKE_COMMAND}" -E tar xzf "${CACHE_CANDIDATE}" WORKING_DIRECTORY "${DL_DESTINATION_DIR}" RESULT_VARIABLE res) if(NOT res EQUAL 0)