Skip to content

Commit 1177dcf

Browse files
committed
Merge pull request #2971 from dennisameling/vcpkg-dlls
cmake(install): include vcpkg dlls
2 parents 95d090c + 1952403 commit 1177dcf

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ jobs:
164164
vs-build:
165165
needs: ci-config
166166
if: needs.ci-config.outputs.enabled == 'yes'
167+
timeout-minutes: 15
167168
env:
168169
MSYSTEM: MINGW64
169170
NO_PERL: 1
@@ -189,6 +190,11 @@ jobs:
189190
## Unzip and remove the artifact
190191
unzip artifacts.zip
191192
rm artifacts.zip
193+
- name: initialize vcpkg
194+
uses: actions/checkout@v2
195+
with:
196+
repository: 'microsoft/vcpkg'
197+
path: 'compat/vcbuild/vcpkg'
192198
- name: download vcpkg artifacts
193199
shell: powershell
194200
run: |

contrib/buildsystems/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ if(WIN32)
5858

5959
# In the vcpkg edition, we need this to be able to link to libcurl
6060
set(CURL_NO_CURL_CMAKE ON)
61+
62+
# Copy the necessary vcpkg DLLs (like iconv) to the install dir
63+
set(X_VCPKG_APPLOCAL_DEPS_INSTALL ON)
64+
set(CMAKE_TOOLCHAIN_FILE ${VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")
6165
endif()
6266

6367
find_program(SH_EXE sh PATHS "C:/Program Files/Git/bin")

0 commit comments

Comments
 (0)