Skip to content

Commit

Permalink
cmake: export compile commands
Browse files Browse the repository at this point in the history
  • Loading branch information
kkosciusz committed Jun 15, 2024
1 parent 955833c commit 2b7f2cb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
"binaryDir": "${sourceDir}/build/debug",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Debug"
},
"environment": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "YES"
}
},
{
Expand All @@ -20,6 +23,9 @@
"binaryDir": "${sourceDir}/build/release",
"cacheVariables": {
"CMAKE_BUILD_TYPE": "Release"
},
"environment": {
"CMAKE_EXPORT_COMPILE_COMMANDS": "YES"
}
},
{
Expand Down

0 comments on commit 2b7f2cb

Please sign in to comment.