Skip to content

Commit a97f0a3

Browse files
committed
Adding compilation database preset.
1 parent fdb4675 commit a97f0a3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CMakePresets.json

+12
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,18 @@
2121
"stlab.coverage": "OFF"
2222
}
2323
},
24+
{
25+
"name": "compilation-database",
26+
"hidden": false,
27+
"generator": "Ninja",
28+
"binaryDir": "${sourceDir}/build/${presetName}",
29+
"cacheVariables": {
30+
"CMAKE_CXX_STANDARD": "20",
31+
"CMAKE_BUILD_TYPE": "DEBUG",
32+
"STLAB_TASK_SYSTEM": "portable",
33+
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
34+
}
35+
},
2436
{
2537
"name": "debug-cpp20-tsan-ubsan-portable",
2638
"description": "Ninja Debug Build",

0 commit comments

Comments
 (0)