mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-27 14:14:07 +08:00
patch for Visual Studio 9 2008 x64 failed builds
This commit is contained in:
parent
dd980008f7
commit
824e1b2a99
11
appveyor-patch.ps1
Normal file
11
appveyor-patch.ps1
Normal file
@ -0,0 +1,11 @@
|
||||
# Script to patch Appveyor build environment for Visual Studio 2008 64bit
|
||||
|
||||
$url = "https://github.com/menpo/condaci/raw/master/vs2008_patch.zip"
|
||||
$output = "$pwd\build\vs2008_patch.zip"
|
||||
|
||||
(New-Object System.Net.WebClient).DownloadFile($url, $output)
|
||||
|
||||
7z -e "$pwd\build\vs2008_patch.zip"
|
||||
cmd.exe /c "$pwd\build\vs2008_patch\setup_x64.bat"
|
||||
|
||||
|
@ -72,6 +72,7 @@ configuration:
|
||||
|
||||
|
||||
build_script:
|
||||
- ps: if($env:PLATFORM -eq "x64" -And $GENERATOR -eq 'Visual Studio 9 2008') { .\appveyor-patch.ps1 }
|
||||
- ps: if($env:PLATFORM -eq "x64") { $env:CMAKE_GEN_SUFFIX=" Win64" }
|
||||
- cmake "-G%GENERATOR%%CMAKE_GEN_SUFFIX%" -DBUILD_SHARED_LIBS=%BUILD_SHARED_LIBS% -DENABLE_CJSON_TEST=%ENABLE_CJSON_TEST% -H. -Bbuild
|
||||
- cmake --build build --config "%CONFIGURATION%"
|
||||
|
Loading…
x
Reference in New Issue
Block a user