File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 11# AppVeyor configuration for cpp_tutorial Project
22version : 1.0.{build}
33
4- # Build environment
4+ # Build environment - using latest Visual Studio 2022
55os : Visual Studio 2022
66
77# Branches to build
@@ -30,12 +30,15 @@ install:
3030 - cmake --version
3131
3232before_build :
33- - mkdir build
34- - cd build
35- - cmake -G "Ninja" ..
33+ # Use CMake presets for configuration
34+ - cmake --preset ninja-multi
3635
3736build_script :
38- - cmake --build . --config %CONFIGURATION%
37+ # Use CMake presets for building based on configuration
38+ - if "%CONFIGURATION%"=="Debug" cmake --build --preset ninja-multi-debug
39+ - if "%CONFIGURATION%"=="Release" cmake --build --preset ninja-multi-release
40+ - if "%CONFIGURATION%"=="RelWithDebInfo" cmake --build --preset ninja-multi-relwithdebinfo
41+ - if "%CONFIGURATION%"=="MinSizeRel" cmake --build --preset ninja-multi-minsizerel
3942
4043test_script :
4144 # Uncomment if you have tests
@@ -56,4 +59,3 @@ notifications:
5659 - behnam.asadi@gmail.com
5760 on_build_success : true
5861 on_build_failure : true
59-
You can’t perform that action at this time.
0 commit comments