Skip to content

Commit b1a6e2e

Browse files
committed
Merge pull request #2971 from dennisameling/vcpkg-dlls
cmake(install): include vcpkg dlls
2 parents 5f2a869 + 62b647d commit b1a6e2e

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
@@ -163,6 +163,7 @@ jobs:
163163
vs-build:
164164
needs: ci-config
165165
if: needs.ci-config.outputs.enabled == 'yes'
166+
timeout-minutes: 15
166167
env:
167168
MSYSTEM: MINGW64
168169
NO_PERL: 1
@@ -188,6 +189,11 @@ jobs:
188189
## Unzip and remove the artifact
189190
unzip artifacts.zip
190191
rm artifacts.zip
192+
- name: initialize vcpkg
193+
uses: actions/checkout@v2
194+
with:
195+
repository: 'microsoft/vcpkg'
196+
path: 'compat/vcbuild/vcpkg'
191197
- name: download vcpkg artifacts
192198
shell: powershell
193199
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)