mirror of
https://github.com/GNOME/libxml2.git
synced 2025-10-14 11:37:29 +08:00
ci: Fix MSVC test by setting CMake generator manually
Visual Studio 2017 was removed from the Windows runners, but CMake still picked it up for some reason.
This commit is contained in:
@@ -16,6 +16,7 @@ if (-not (Test-Path xmlconf)) {
|
||||
}
|
||||
|
||||
cmake `
|
||||
-G "Visual Studio 16 2019" `
|
||||
-DBUILD_SHARED_LIBS="$Env:BUILD_SHARED_LIBS" `
|
||||
-DCMAKE_INSTALL_PREFIX=libxml2-install `
|
||||
-DLIBXML2_WITH_SCHEMATRON=ON `
|
||||
@@ -24,6 +25,9 @@ cmake `
|
||||
-DLIBXML2_WITH_PYTHON=OFF `
|
||||
-DLIBXML2_WITH_ZLIB=OFF `
|
||||
-S . -B libxml2-build
|
||||
if ($LastExitCode -ne 0) {
|
||||
throw "cmake failed"
|
||||
}
|
||||
cmake --build libxml2-build --config Debug --target install
|
||||
cmake --build libxml2-build --config Release --target install
|
||||
New-Item -ItemType Directory libxml2-install\share\libxml2
|
||||
|
Reference in New Issue
Block a user