From 8cb213ce8a767859b45ae55185adaf42c64433e2 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 13 Apr 2020 13:24:02 +0200 Subject: [PATCH] CMake: fix broken pzip files on Windows It seems piping isn't working properly for binary data --- cmake/macros/RunPzip.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/macros/RunPzip.cmake b/cmake/macros/RunPzip.cmake index d8f0c4bec3..2a3488e6df 100644 --- a/cmake/macros/RunPzip.cmake +++ b/cmake/macros/RunPzip.cmake @@ -13,7 +13,7 @@ function(run_pzip target_name source destination glob) add_custom_command(OUTPUT "${destination}/${dstfile}" COMMAND ${CMAKE_COMMAND} -E make_directory "${dstdir}" - COMMAND host_pzip -c > "${destination}/${dstfile}" < "${source}/${filename}" + COMMAND host_pzip -o "${destination}/${dstfile}" "${source}/${filename}" DEPENDS host_pzip COMMENT "")