]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
appveyor: make VS2008-built curl tool runnable
authorViktor Szakats <commit@vsz.me>
Fri, 3 Nov 2023 22:31:49 +0000 (22:31 +0000)
committerViktor Szakats <commit@vsz.me>
Fri, 3 Nov 2023 22:53:45 +0000 (22:53 +0000)
By linking the CRT statically. This avoids the error about missing
runtime DLL `MSVCR90.dll` when running the freshly built `curl.exe`.

Closes #12263

appveyor.yml

index 3c812dc4f67873b97707b8001edf184b11797983..175f298d53ab14fb0a106e30a7021f0513fa61b8 100644 (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