Skip to content

Commit 26e1b61

Browse files
authored
Fix UPDATE_COMMAND <-> PATCH_COMMAND for zlib (#2740)
1 parent 87979d5 commit 26e1b61

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmake/Modules/LocalZlibpng.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ FetchContent_Declare(
2424
SOURCE_DIR "${ZLIB_SOURCE_DIR}" BINARY_DIR "${ZLIB_BINARY_DIR}"
2525
GIT_TAG "${AVIF_ZLIB_GIT_TAG}"
2626
GIT_SHALLOW ON
27-
UPDATE_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_SOURCE_DIR}/ext/zlib.patch"
27+
PATCH_COMMAND git apply --ignore-whitespace "${CMAKE_CURRENT_SOURCE_DIR}/ext/zlib.patch"
28+
UPDATE_COMMAND ""
2829
)
2930

3031
# Put the value of ZLIB_INCLUDE_DIR in the cache. This works around cmake behavior that has been updated by

0 commit comments

Comments
 (0)