appveyor: make VS2008-built curl tool runnable

By linking the CRT statically. This avoids the error about missing
runtime DLL `MSVCR90.dll` when running the freshly built `curl.exe`.

Closes #12263
This commit is contained in:
Viktor Szakats 2023-11-03 22:31:49 +00:00
parent 3e6254f819
commit 026122efd3
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -48,7 +48,6 @@ environment:
SHARED: 'ON'
TESTING: 'OFF'
DISABLED_TESTS: ''
SKIP_RUN: 'Needs missing MSVCR90.dll'
- job_name: 'CMake, VS2022, Release, x64, OpenSSL 3, WebSockets, Unity, Build-only'
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
BUILD_SYSTEM: CMake
@ -333,6 +332,10 @@ build_script:
if($env:PRJ_GEN.Contains('Visual Studio')) {
$options += '-DCMAKE_VS_GLOBALS=TrackFileAccess=false'
}
if($env:PRJ_GEN -eq 'Visual Studio 9 2008') {
# Without this it fails to run due to missing MSVCR90.dll
$options += '-DCURL_STATIC_CRT=ON'
}
Write-Host 'CMake options:' $options
cmake . $options