diff options
| author | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-10 16:13:32 -0800 |
|---|---|---|
| committer | Alexander Karatarakis <alkarata@microsoft.com> | 2017-03-10 17:07:42 -0800 |
| commit | f2edc1256181fef986e7e23f5cd7fc1f169c12ed (patch) | |
| tree | 662fd8e4c345eef5e04d4b25516f57b96508844b | |
| parent | ea52c29e9af701c4a2e070f836bb1ffb7e092760 (diff) | |
| download | vcpkg-f2edc1256181fef986e7e23f5cd7fc1f169c12ed.tar.gz vcpkg-f2edc1256181fef986e7e23f5cd7fc1f169c12ed.zip | |
[libuv] Fix usage of GIT
| -rw-r--r-- | ports/libuv/portfile.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ports/libuv/portfile.cmake b/ports/libuv/portfile.cmake index 173d3bcdc..fbc71854e 100644 --- a/ports/libuv/portfile.cmake +++ b/ports/libuv/portfile.cmake @@ -16,8 +16,11 @@ if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-src) ) endif() -vcpkg_find_acquire_program(PYTHON2) +find_program(GIT git) +get_filename_component(GIT_EXE_PATH ${GIT} DIRECTORY) +set(ENV{PATH} "$ENV{PATH};${GIT_EXE_PATH}") +vcpkg_find_acquire_program(PYTHON2) set(ENV{PYTHON} ${PYTHON2}) set(ENV{GYP_MSVS_VERSION} 2015) |
