Skip to content

Commit 01d78e6

Browse files
committed
fixing Appvoyer
1 parent 815aef1 commit 01d78e6

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.appveyor.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# AppVeyor configuration for cpp_tutorial Project
22
version: 1.0.{build}
33

4-
# Build environment
4+
# Build environment - using latest Visual Studio 2022
55
os: Visual Studio 2022
66

77
# Branches to build
@@ -30,12 +30,15 @@ install:
3030
- cmake --version
3131

3232
before_build:
33-
- mkdir build
34-
- cd build
35-
- cmake -G "Ninja" ..
33+
# Use CMake presets for configuration
34+
- cmake --preset ninja-multi
3635

3736
build_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

4043
test_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-

0 commit comments

Comments
 (0)