stop superbuild if a patch fails
Description
superbuild must stop if any of patch is failing. right now we keep going and fail at end of otb configure/build phase. see below log from superbuild for opencv
Input patch file: C:/dashboard/otb/src/SuperBuild/patches/OPENCV/opencv-1-install-prefix-win.diff
CMake Error at C:/dashboard/otb/src/SuperBuild/CMake/patch.cmake:57 (message):
C:/Tools/patch-2.5.9-7/bin/patch.exe --binary -p1 -i
C:/dashboard/otb/src/SuperBuild/patches/OPENCV/opencv-1-install-prefix-win.diff
failed
error: (Stripping trailing CRs from patch.)
patching file CMakeLists.txt
Hunk #1 FAILED at 290.
1 out of 1 hunk FAILED -- saving rejects to file CMakeLists.txt.rej