Skip to content

Commit 6c8a010

Browse files
authored
Add --binary flag to patch command. (#9941)
Certain versions of the 'patch' command on Windows have an issue with CRLF line endings. Adding the --binary flag is a no-op on POSIX systems, but should fix patch.exe crashing on Windows.
1 parent 4cf275f commit 6c8a010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/external/snappy.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ ExternalProject_Add(
3434
BUILD_COMMAND ""
3535
INSTALL_COMMAND ""
3636
TEST_COMMAND ""
37-
PATCH_COMMAND patch -Np1 -i ${CMAKE_CURRENT_LIST_DIR}/snappy.patch
37+
PATCH_COMMAND patch -Np1 --binary -i ${CMAKE_CURRENT_LIST_DIR}/snappy.patch
3838

3939
HTTP_HEADER "${EXTERNAL_PROJECT_HTTP_HEADER}"
4040
)

0 commit comments

Comments
 (0)