-
-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathappveyor_build_win.bat
14 lines (12 loc) · 1.32 KB
/
appveyor_build_win.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" ( IF "%PLATFORM%" == "x86" ( SET GEN="Visual Studio 14 2015" ) ELSE ( SET GEN="Visual Studio 14 2015 Win64" ) )
IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2017" ( IF "%PLATFORM%" == "x86" ( SET GEN="Visual Studio 15 2017" ) ELSE ( SET GEN="Visual Studio 15 2017 Win64" ) )
IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2013" ( IF "%PLATFORM%" == "x86" ( SET GEN="Visual Studio 12 2013" ) ELSE ( SET GEN="Visual Studio 12 2013 Win64" ) )
IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2019" ( IF "%PLATFORM%" == "x86" ( SET GEN="Visual Studio 16 2019" ) ELSE ( SET GEN="Visual Studio 16 2019" ) )
IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2019" ( IF "%PLATFORM%" == "x86" ( SET GEN="Visual Studio 16 2019" ) ELSE ( SET ARCH=-A x64 ) )
IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2022" ( IF "%PLATFORM%" == "x86" ( SET GEN="Visual Studio 17 2022" ) ELSE ( SET GEN="Visual Studio 17 2022" ) )
IF "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2022" ( IF "%PLATFORM%" == "x86" ( SET GEN="Visual Studio 17 2022" ) ELSE ( SET ARCH=-A x64 ) )
echo CI_DEBUG_GEN_ARCH: %GEN% %ARCH%
echo CI_DEBUG_CONFIGURATION: %CONFIGURATION%
cmake . -G %GEN% %ARCH% -DCMAKE_CXX_FLAGS="%additional_flags%"
cmake --build . --config %CONFIGURATION%
ctest -C %CONFIGURATION%