aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/cmake/vcpkg_apply_patches.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/cmake/vcpkg_apply_patches.cmake b/scripts/cmake/vcpkg_apply_patches.cmake
index 939edbd14..f5d4d75f1 100644
--- a/scripts/cmake/vcpkg_apply_patches.cmake
+++ b/scripts/cmake/vcpkg_apply_patches.cmake
@@ -13,6 +13,16 @@ function(vcpkg_apply_patches)
WORKING_DIRECTORY ${_ap_SOURCE_PATH}
RESULT_VARIABLE error_code
)
+
+ if(error_code)
+ message(STATUS
+ "Applying patch failed: ${GIT} --work-tree=. apply \"${PATCH}\" --ignore-whitespace --whitespace=nowarn --verbose\n"
+ "Working Directory: ${_ap_SOURCE_PATH}\n"
+ "See logs for more information:\n"
+ " ${CURRENT_BUILDTREES_DIR}/${LOGNAME}-out.log\n"
+ " ${CURRENT_BUILDTREES_DIR}/${LOGNAME}-err.log\n")
+ endif()
+
message(STATUS "Applying patch ${PATCH} done")
math(EXPR PATCHNUM "${PATCHNUM}+1")
endforeach()