Skip to content

Commit ac77ba8

Browse files
committed
modern CMAKE brbr
1 parent ce6b705 commit ac77ba8

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
name: Building
117117
command: |
118118
& 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\Launch-VsDevShell.ps1' -arch << parameters.arch >>
119-
cmake -B build -DCMAKE_COMPILE_WARNING_AS_ERROR=1 -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_LIBS=OFF -DDD_TRACE_STATIC_CRT=1 -DDD_TRACE_BUILD_TESTING=1 -G Ninja .
119+
cmake --preset=ci-winwdows -B build -DCMAKE_BUILD_TYPE=Debug .
120120
cmake --build build -j $env:MAKE_JOB_COUNT -v
121121
- run:
122122
name: Testing

CMakePresets.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": 8,
3+
"$schema": "https://cmake.org/cmake/help/latest/_downloads/3e2d73bff478d88a7de0de736ba5e361/schema.json",
4+
"configurePresets": [
5+
{
6+
"name": "ci-windows",
7+
"displayName": "CI Windows",
8+
"generator": "Ninja",
9+
"cacheVariables": {
10+
"CMAKE_COMPILE_WARNING_AS_ERROR": "1",
11+
"BUILD_SHARED_LIBS": "OFF",
12+
"DD_TRACE_STATIC_CRT": "1",
13+
"DD_TRACE_BUILD_TESTING": "1"
14+
}
15+
}
16+
]
17+
}

0 commit comments

Comments
 (0)