mirror of
https://github.com/curl/curl.git
synced 2025-09-11 06:32:41 +03:00
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:
parent
3e6254f819
commit
026122efd3
|
@ -48,7 +48,6 @@ environment:
|
||||||
SHARED: 'ON'
|
SHARED: 'ON'
|
||||||
TESTING: 'OFF'
|
TESTING: 'OFF'
|
||||||
DISABLED_TESTS: ''
|
DISABLED_TESTS: ''
|
||||||
SKIP_RUN: 'Needs missing MSVCR90.dll'
|
|
||||||
- job_name: 'CMake, VS2022, Release, x64, OpenSSL 3, WebSockets, Unity, Build-only'
|
- job_name: 'CMake, VS2022, Release, x64, OpenSSL 3, WebSockets, Unity, Build-only'
|
||||||
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
|
APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2022'
|
||||||
BUILD_SYSTEM: CMake
|
BUILD_SYSTEM: CMake
|
||||||
|
@ -333,6 +332,10 @@ build_script:
|
||||||
if($env:PRJ_GEN.Contains('Visual Studio')) {
|
if($env:PRJ_GEN.Contains('Visual Studio')) {
|
||||||
$options += '-DCMAKE_VS_GLOBALS=TrackFileAccess=false'
|
$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
|
Write-Host 'CMake options:' $options
|
||||||
cmake . $options
|
cmake . $options
|
||||||
|
|
Loading…
Reference in New Issue
Block a user