Skip to content

Commit 50b6516

Browse files
authored
Update OpenCVDownload.cmake unpack
Added new "f" flag to the tar unpack, because without it doesn't complete, an compile fails
1 parent cc547e8 commit 50b6516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/OpenCVDownload.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ ${OPENCV_DOWNLOAD_LOG}
216216
ocv_download_log("#mkdir \"${DL_DESTINATION_DIR}\"")
217217
file(MAKE_DIRECTORY "${DL_DESTINATION_DIR}")
218218
ocv_download_log("#unpack \"${DL_DESTINATION_DIR}\" \"${CACHE_CANDIDATE}\"")
219-
execute_process(COMMAND "${CMAKE_COMMAND}" -E tar xz "${CACHE_CANDIDATE}"
219+
execute_process(COMMAND "${CMAKE_COMMAND}" -E tar xzf "${CACHE_CANDIDATE}"
220220
WORKING_DIRECTORY "${DL_DESTINATION_DIR}"
221221
RESULT_VARIABLE res)
222222
if(NOT res EQUAL 0)

0 commit comments

Comments
 (0)