diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2016-10-24 17:06:33 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2016-10-24 17:06:33 -0700 |
| commit | 0f0c0b7ad9e712473bde78b7ebf9700a667b3027 (patch) | |
| tree | b6b86708b96cbf2b5763fdecefa392bdd1711cde | |
| parent | 982c98f133baa2043d86a20391933573ed573a92 (diff) | |
| download | vcpkg-0f0c0b7ad9e712473bde78b7ebf9700a667b3027.tar.gz vcpkg-0f0c0b7ad9e712473bde78b7ebf9700a667b3027.zip | |
[vcpkg_apply_patches] Specify git-dir to avoid errors due to invalid git repo
| -rw-r--r-- | scripts/cmake/vcpkg_apply_patches.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/cmake/vcpkg_apply_patches.cmake b/scripts/cmake/vcpkg_apply_patches.cmake index f5d4d75f1..731909834 100644 --- a/scripts/cmake/vcpkg_apply_patches.cmake +++ b/scripts/cmake/vcpkg_apply_patches.cmake @@ -7,7 +7,7 @@ function(vcpkg_apply_patches) message(STATUS "Applying patch ${PATCH}") set(LOGNAME patch-${TARGET_TRIPLET}-${PATCHNUM}) execute_process( - COMMAND ${GIT} --work-tree=. apply "${PATCH}" --ignore-whitespace --whitespace=nowarn --verbose + COMMAND ${GIT} --work-tree=. --git-dir=. 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} |
