Skip to content

Commit 7ccfbda

Browse files
committed
CI:azure:windows_build_deps.cmd: Enforce MSVC libxml build
The issue: While running this script locally, using the MSVC2022, cmake picked some MinGW/MSYS toolchain which built fine but produced a libxml2.dll.a instead of libxml2.dll. Moreover, since this script takes the compiler, toolset and architecture as parameters it makes sense to pass the to the libxml build as well. Signed-off-by: Dan Nechita <dan.nechita@analog.com>
1 parent ba372ae commit 7ccfbda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CI/azure/windows_build_deps.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ rm .\libxml2-2.9.14.tar.xz
3838
%msbuild% .\zstd\build\VS2010\zstd.sln /p:Platform=%ARCH% /p:Configuration=Release /p:PlatformToolset=%PLATFORM_TOOLSET%
3939
%msbuild% .\libserialport\libserialport.vcxproj /p:Platform=%ARCH% /p:Configuration=Release /p:PlatformToolset=%PLATFORM_TOOLSET%
4040
:: build libxml with cmake
41-
cmake -DCMAKE_INSTALL_PREFIX=libxml2-install -DLIBXML2_WITH_ICONV=OFF -DLIBXML2_WITH_LZMA=OFF -DLIBXML2_WITH_PYTHON=OFF -DLIBXML2_WITH_ZLIB=OFF -S .\libxml2-2.9.14\ -B libxml2-build
41+
cmake -G "%COMPILER%" -A %ARCH% -DCMAKE_INSTALL_PREFIX=libxml2-install -DLIBXML2_WITH_ICONV=OFF -DLIBXML2_WITH_LZMA=OFF -DLIBXML2_WITH_PYTHON=OFF -DLIBXML2_WITH_ZLIB=OFF -S .\libxml2-2.9.14\ -B libxml2-build
4242
cmake --build libxml2-build --config Release --target install

0 commit comments

Comments
 (0)