Skip to content

Commit

Permalink
Add vscode settings (#1600)
Browse files Browse the repository at this point in the history
Co-authored-by: Silvio Traversaro <[email protected]>
  • Loading branch information
giotherobot and traversaro authored Feb 14, 2024
1 parent b49ea68 commit 3e7f243
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"C_Cpp.default.compileCommands": "${config:cmake.buildDirectory}/compile_commands.json",
"cmake.mergedCompileCommands": "${config:cmake.buildDirectory}/compile_commands.json",
"clangd.arguments": [
"--compile-commands-dir=${config:cmake.buildDirectory}/"
],
}
3 changes: 3 additions & 0 deletions cmake/RobotologySuperbuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

set(YCM_USE_CMAKE_PROPOSED TRUE CACHE BOOL "Use files including unmerged cmake patches")

set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE BOOL "Enable/Disable output of compile commands during generation.")
mark_as_advanced(CMAKE_EXPORT_COMPILE_COMMANDS)

# YCM options
option(YCM_DISABLE_SYSTEM_PACKAGES "Disable use of all the system installed packages" ON)

Expand Down

0 comments on commit 3e7f243

Please sign in to comment.