diff --git a/appveyor.yml b/appveyor.yml index de7249e..a03328f 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -42,17 +42,18 @@ install: } $env:PATH="C:\cmake-3.8.0-win32-x86\bin;$env:PATH" } - # Workaround for lld bug with vcpkg integration - - ps: | - if ($env:USE_TOOLSET -eq "LLVM" -and - (Get-Content C:\Tools\vcpkg\toolsrc\VERSION.txt).Replace('.','').Trim('"') -lt 20181020 - ) { - echo "Updating vcpkg..." - cd C:\Tools\vcpkg - git pull --quiet - cd "$env:APPVEYOR_BUILD_FOLDER" - } else { - echo "==> vcpkg has been updated, please remove the workaround from appveyor.yml." + # Workaround for lld bug with vcpkg integration + if ($env:USE_TOOLSET -eq "LLVM") { + if ( + Get-Content C:\Tools\vcpkg\toolsrc\VERSION.txt).Replace('.','').Trim('"') -lt 20181020 + ) { + echo "Updating vcpkg..." + cd C:\Tools\vcpkg + git pull --quiet + cd "$env:APPVEYOR_BUILD_FOLDER" + } else { + echo "==> vcpkg has been updated, please remove the workaround from appveyor.yml." + } } before_build: