mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-18 07:33:26 -05:00
Merge pull request #2971 from dennisameling/vcpkg-dlls
cmake(install): include vcpkg dlls
This commit is contained in:
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -163,6 +163,7 @@ jobs:
|
||||
vs-build:
|
||||
needs: ci-config
|
||||
if: needs.ci-config.outputs.enabled == 'yes'
|
||||
timeout-minutes: 15
|
||||
env:
|
||||
MSYSTEM: MINGW64
|
||||
NO_PERL: 1
|
||||
@@ -188,6 +189,11 @@ jobs:
|
||||
## Unzip and remove the artifact
|
||||
unzip artifacts.zip
|
||||
rm artifacts.zip
|
||||
- name: initialize vcpkg
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: 'microsoft/vcpkg'
|
||||
path: 'compat/vcbuild/vcpkg'
|
||||
- name: download vcpkg artifacts
|
||||
shell: powershell
|
||||
run: |
|
||||
|
||||
@@ -58,6 +58,10 @@ if(WIN32)
|
||||
|
||||
# In the vcpkg edition, we need this to be able to link to libcurl
|
||||
set(CURL_NO_CURL_CMAKE ON)
|
||||
|
||||
# Copy the necessary vcpkg DLLs (like iconv) to the install dir
|
||||
set(X_VCPKG_APPLOCAL_DEPS_INSTALL ON)
|
||||
set(CMAKE_TOOLCHAIN_FILE ${VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")
|
||||
endif()
|
||||
|
||||
find_program(SH_EXE sh PATHS "C:/Program Files/Git/bin")
|
||||
|
||||
Reference in New Issue
Block a user