@@ -113,15 +113,15 @@ for:
113
113
cd %APPVEYOR_BUILD_FOLDER%
114
114
C:\Tools\vcpkg\bootstrap-vcpkg.bat -disableMetrics
115
115
C:\Tools\vcpkg\vcpkg integrate install
116
- set VCPKG_DEFAULT_TRIPLET=%platform%-windows
116
+ set VCPKG_DEFAULT_TRIPLET=%platform%-windows-%configuration%
117
117
vcpkg install sqlite3[core,dbstat,math,json1,fts5,soundex] --overlay-triplets=vcpkg/triplets
118
118
rem The Visual Studio 2017 build worker image comes with CMake 3.16 only, and sqlite_orm will build the Catch2 dependency from source
119
119
if not "%appveyor_build_worker_image%"=="Visual Studio 2017" (vcpkg install catch2)
120
120
before_build :
121
121
- |-
122
122
mkdir compile
123
123
cd compile
124
- cmake %SQLITE_ORM_CXX_STANDARD% -G %generator% -DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
124
+ cmake %SQLITE_ORM_CXX_STANDARD% -G %generator% -DCMAKE_BUILD_TYPE=%configuration% - DCMAKE_TOOLCHAIN_FILE=C:/Tools/vcpkg/scripts/buildsystems/vcpkg.cmake ..
125
125
# build examples, and run tests (ie make & make test)
126
126
build_script :
127
127
- |-
@@ -145,18 +145,19 @@ for:
145
145
git fetch origin tag 2024.04.26 && git checkout 2024.04.26
146
146
popd
147
147
$HOME/vcpkg/bootstrap-vcpkg.sh -disableMetrics
148
+ set VCPKG_DEFAULT_TRIPLET=$platform-linux-$configuration
148
149
$HOME/vcpkg/vcpkg integrate install --overlay-triplets=vcpkg/triplets
149
150
vcpkg install sqlite3[core,dbstat,math,json1,fts5,soundex] catch2 --overlay-triplets=vcpkg/triplets
150
151
before_build :
151
152
- |-
152
153
mkdir compile
153
154
cd compile
154
- cmake $SQLITE_ORM_CXX_STANDARD $cmake_build_examples --toolchain $HOME/vcpkg/scripts/buildsystems/vcpkg.cmake ..
155
+ cmake $SQLITE_ORM_CXX_STANDARD $cmake_build_examples -DCMAKE_BUILD_TYPE=$configuration - -toolchain $HOME/vcpkg/scripts/buildsystems/vcpkg.cmake ..
155
156
# build examples, and run tests (ie make & make test)
156
157
build_script :
157
158
- |-
158
- cmake --build . $cmake_build_parallel
159
- ctest --verbose --output-on-failure
159
+ cmake --build . --config $configuration $cmake_build_parallel
160
+ ctest --verbose --output-on-failure --build-config $configuration
160
161
-
161
162
# macOS
162
163
matrix :
@@ -172,15 +173,16 @@ for:
172
173
- |-
173
174
git clone --depth 1 --branch 2024.04.26 https://github.com/microsoft/vcpkg.git $HOME/vcpkg
174
175
$HOME/vcpkg/bootstrap-vcpkg.sh -disableMetrics
176
+ set VCPKG_DEFAULT_TRIPLET=$platform-osx-$configuration
175
177
$HOME/vcpkg/vcpkg integrate install --overlay-triplets=vcpkg/triplets
176
178
vcpkg install sqlite3[core,dbstat,math,json1,fts5,soundex] catch2 --overlay-triplets=vcpkg/triplets
177
179
before_build :
178
180
- |-
179
181
mkdir compile
180
182
cd compile
181
- cmake $SQLITE_ORM_CXX_STANDARD --toolchain $HOME/vcpkg/scripts/buildsystems/vcpkg.cmake ..
183
+ cmake $SQLITE_ORM_CXX_STANDARD -DCMAKE_BUILD_TYPE=$configuration - -toolchain $HOME/vcpkg/scripts/buildsystems/vcpkg.cmake ..
182
184
# build examples, and run tests (ie make & make test)
183
185
build_script :
184
186
- |-
185
- cmake --build . --parallel
186
- ctest --verbose --output-on-failure
187
+ cmake --build . --config $configuration -- parallel
188
+ ctest --verbose --output-on-failure --build-config $configuration
0 commit comments