Skip to content

Commit 9310b46

Browse files
dennisamelingdscho
authored andcommitted
ci(vs-build): stop passing the iconv library location explicitly
Something changed in `vcpkg` (which we use in our Visual C++ build to provide the dependencies such as libcurl) and our `vs-build` job started failing in CI. The reason is that we had a work-around in place to help CMake find iconv, and this work-around is neither needed nor does it work anymore. For the full discussion with the vcpkg project, see this comment: microsoft/vcpkg#14780 (comment) Signed-off-by: Dennis Ameling <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent ad95d13 commit 9310b46

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.github/workflows/main.yml

-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ jobs:
201201
shell: bash
202202
run: |
203203
cmake `pwd`/contrib/buildsystems/ -DCMAKE_PREFIX_PATH=`pwd`/compat/vcbuild/vcpkg/installed/x64-windows \
204-
-DIconv_LIBRARY=`pwd`/compat/vcbuild/vcpkg/installed/x64-windows/lib/libiconv.lib -DIconv_INCLUDE_DIR=`pwd`/compat/vcbuild/vcpkg/installed/x64-windows/include \
205204
-DMSGFMT_EXE=`pwd`/git-sdk-64-minimal/mingw64/bin/msgfmt.exe -DPERL_TESTS=OFF -DPYTHON_TESTS=OFF -DCURL_NO_CURL_CMAKE=ON
206205
- name: MSBuild
207206
run: msbuild git.sln -property:Configuration=Release -property:Platform=x64 -maxCpuCount:4 -property:PlatformToolset=v142

compat/vcbuild/scripts/clink.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
push(@args, "zlib.lib");
4646
}
4747
} elsif ("$arg" eq "-liconv") {
48-
push(@args, "libiconv.lib");
48+
push(@args, "iconv.lib");
4949
} elsif ("$arg" eq "-lcrypto") {
5050
push(@args, "libcrypto.lib");
5151
} elsif ("$arg" eq "-lssl") {

contrib/buildsystems/engine.pl

+1-1
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ sub handleLinkLine
351351
} elsif ("$part" eq "-lexpat") {
352352
push(@libs, "libexpat.lib");
353353
} elsif ("$part" eq "-liconv") {
354-
push(@libs, "libiconv.lib");
354+
push(@libs, "iconv.lib");
355355
} elsif ($part =~ /^[-\/]/) {
356356
push(@lflags, $part);
357357
} elsif ($part =~ /\.(a|lib)$/) {

0 commit comments

Comments
 (0)