Skip to content

Commit 99444ca

Browse files
committed
cmake: Enable CMAKE_EXPORT_COMPILE_COMMANDS in the preset
Allows to use vscode for hacking.
1 parent 4807179 commit 99444ca

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ CMakeUserPresets.json
55
.vs/
66
.vscode/
77
.idea/
8+
compile_commands.json

CMakePresets.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"generator": "Ninja",
88
"cacheVariables": {
99
"KDUTILS_BUILD_TESTS": "OFF",
10-
"KDUTILS_CODE_COVERAGE": "OFF"
10+
"KDUTILS_CODE_COVERAGE": "OFF",
11+
"CMAKE_EXPORT_COMPILE_COMMANDS": "ON"
1112
}
1213
},
1314
{

0 commit comments

Comments
 (0)