diff options
author | Brad King <brad.king@kitware.com> | 2017-11-15 11:56:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-15 11:56:04 (GMT) |
commit | 501b08ea6760c7b5169e65ab906ee3fdc80504b0 (patch) | |
tree | 95fe1d743e5e585de36b09c2984a7c923338abb8 /Tests/FindPatch | |
parent | 1fe9e49bad0ad4f540ceda028106d9af89084946 (diff) | |
download | CMake-501b08ea6760c7b5169e65ab906ee3fdc80504b0.zip CMake-501b08ea6760c7b5169e65ab906ee3fdc80504b0.tar.gz CMake-501b08ea6760c7b5169e65ab906ee3fdc80504b0.tar.bz2 |
Tests: Fix FindPatch test on Windows
On Windows our input and patch files may have CRLF newlines.
Tell `patch` not to transform them to LF newlines because our
baseline will have CRLF newlines too.
Diffstat (limited to 'Tests/FindPatch')
-rw-r--r-- | Tests/FindPatch/Test/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/FindPatch/Test/CMakeLists.txt b/Tests/FindPatch/Test/CMakeLists.txt index f4cd621..66c672c 100644 --- a/Tests/FindPatch/Test/CMakeLists.txt +++ b/Tests/FindPatch/Test/CMakeLists.txt @@ -70,8 +70,8 @@ index 68059b3..c6f30c2 100644 ) add_custom_target(TestPatch ALL - COMMAND ${Patch_EXECUTABLE} -p1 -i quote-add-author.patch - COMMAND Patch::patch -p1 -i quote-add-date.patch + COMMAND ${Patch_EXECUTABLE} -p1 -i quote-add-author.patch --binary + COMMAND Patch::patch -p1 -i quote-add-date.patch --binary COMMAND ${CMAKE_COMMAND} -E compare_files QUOTE.txt QUOTE.txt.baseline WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} ) |