From d7ff71610b5eed96c86374ad0fb41857a49839cb Mon Sep 17 00:00:00 2001 From: Robert Schumacher Date: Wed, 2 Nov 2016 16:49:15 -0700 Subject: [vcpkg-apply-patches] Correct issue with src directories which contain a config\ folder. Reduce verbosity of output. --- scripts/cmake/vcpkg_apply_patches.cmake | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'scripts/cmake') diff --git a/scripts/cmake/vcpkg_apply_patches.cmake b/scripts/cmake/vcpkg_apply_patches.cmake index 2ebf4266e..cd3026b6a 100644 --- a/scripts/cmake/vcpkg_apply_patches.cmake +++ b/scripts/cmake/vcpkg_apply_patches.cmake @@ -7,19 +7,15 @@ function(vcpkg_apply_patches) message(STATUS "Applying patch ${PATCH}") set(LOGNAME patch-${TARGET_TRIPLET}-${PATCHNUM}) execute_process( - COMMAND ${GIT} --work-tree=. --git-dir=. apply "${PATCH}" --ignore-whitespace --whitespace=nowarn --verbose + COMMAND ${GIT} --work-tree=. --git-dir=.git apply "${PATCH}" --ignore-whitespace --whitespace=nowarn --verbose OUTPUT_FILE ${CURRENT_BUILDTREES_DIR}/${LOGNAME}-out.log ERROR_FILE ${CURRENT_BUILDTREES_DIR}/${LOGNAME}-err.log WORKING_DIRECTORY ${_ap_SOURCE_PATH} RESULT_VARIABLE error_code ) - + if(error_code) - message(STATUS - "Applying patch failed: ${GIT} --work-tree=. --git-dir=. apply \"${PATCH}\" --ignore-whitespace --whitespace=nowarn --verbose\n" - "-- Working Directory: ${_ap_SOURCE_PATH}\n" - "-- This is expected if this patch was previously applied.\n" - "-- See logs for more information: ${CURRENT_BUILDTREES_DIR}/${LOGNAME}-out.log ${CURRENT_BUILDTREES_DIR}/${LOGNAME}-err.log") + message(STATUS "Applying patch failed. This is expected if this patch was previously applied.") endif() message(STATUS "Applying patch ${PATCH} done") -- cgit v1.2.3