Skip to content

Commit

Permalink
fixup! Move settings into own folder for offline start
Browse files Browse the repository at this point in the history
  • Loading branch information
fruzitent committed May 18, 2023
1 parent 234af02 commit 631d45a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .clangd.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CompileFlags:
CompilationDatabase: "@CMAKE_BINARY_DIR@"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

# Build directories and binary files
out
.clangd

# User spesific settings
CMakeUserPresets.json
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ project(
HOMEPAGE_URL "%%myurl%%"
LANGUAGES CXX C)

# TOOD: https://github.com/clangd/vscode-clangd/issues/48#issuecomment-987765846
configure_file(.clangd.in ${CMAKE_SOURCE_DIR}/.clangd @ONLY)

include(cmake/PreventInSourceBuilds.cmake)
include(ProjectOptions.cmake)

Expand Down

0 comments on commit 631d45a

Please sign in to comment.