Skip to content

Commit db26469

Browse files
committed
build: change cmake presets
1 parent 09836d2 commit db26469

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

CMakePresets.json

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,28 +9,31 @@
99
"name": "base",
1010
"hidden": true,
1111
"generator": "Ninja",
12-
"binaryDir": "${sourceDir}/build-${presetName}",
12+
"binaryDir": "${sourceDir}/build",
1313
"cacheVariables": {
1414
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
1515
}
1616
},
1717
{
1818
"name": "debug",
1919
"inherits": "base",
20+
"binaryDir": "${sourceDir}/build-debug",
2021
"cacheVariables": {
2122
"CMAKE_BUILD_TYPE": "Debug"
2223
}
2324
},
2425
{
2526
"name": "release",
2627
"inherits": "base",
28+
"binaryDir": "${sourceDir}/build-release",
2729
"cacheVariables": {
2830
"CMAKE_BUILD_TYPE": "Release"
2931
}
3032
},
3133
{
3234
"name": "clang-debug",
3335
"inherits": "debug",
36+
"binaryDir": "${sourceDir}/build-clang-debug",
3437
"cacheVariables": {
3538
"CMAKE_C_COMPILER": "clang",
3639
"CMAKE_CXX_COMPILER": "clang++"
@@ -39,10 +42,20 @@
3942
{
4043
"name": "gcc-debug",
4144
"inherits": "debug",
45+
"binaryDir": "${sourceDir}/build-gcc-debug",
4246
"cacheVariables": {
4347
"CMAKE_C_COMPILER": "gcc",
4448
"CMAKE_CXX_COMPILER": "g++"
4549
}
50+
},
51+
{
52+
"name": "msvc-debug",
53+
"inherits": "debug",
54+
"binaryDir": "${sourceDir}/build-msvc-debug",
55+
"cacheVariables": {
56+
"CMAKE_C_COMPILER": "cl",
57+
"CMAKE_CXX_COMPILER": "cl"
58+
}
4659
}
4760
],
4861
"buildPresets": [
@@ -66,4 +79,3 @@
6679
}
6780
]
6881
}
69-

0 commit comments

Comments
 (0)