Commit a035fc65 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

SuperBuild: do not fail in configure phase if patch is already applied

parent 1a8f305e
......@@ -11,7 +11,9 @@ if(PATCH_PROGRAM)
OUTPUT_VARIABLE patch_ov
OUTPUT_STRIP_TRAILING_WHITESPACE ERROR_STRIP_TRAILING_WHITESPACE)
if(NOT "${patch_rv}" STREQUAL "0")
message(FATAL_ERROR "${PATCH_PROGRAM} returned non-zero exit status '${patch_rv}'")
if( NOT "${patch_ov}" MATCHES "previously applied")
message(FATAL_ERROR "${PATCH_PROGRAM} returned non-zero exit status '${patch_ov}'")
endif()
else()
message(STATUS "${patch_ov}")
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment