Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vscode settings #1600

Merged
merged 6 commits into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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}/"
],
}
2 changes: 2 additions & 0 deletions cmake/RobotologySuperbuildOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

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

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
giotherobot marked this conversation as resolved.
Show resolved Hide resolved

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

Expand Down
Loading