Add generation of compile_commands.json to cmake-ide
This commit is contained in:
parent
4d5808eb58
commit
719c92104f
|
@ -56,14 +56,15 @@ This function should only modify configuration layer settings."
|
||||||
;; spell-checking
|
;; spell-checking
|
||||||
syntax-checking
|
syntax-checking
|
||||||
;; version-control
|
;; version-control
|
||||||
(cmake :variables cmake-enable-cmake-ide-support t)
|
(cmake :variables
|
||||||
|
cmake-enable-cmake-ide-support t
|
||||||
|
cmake-compile-command "cmake -H. -BDebug -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=YES; ln -s Debug/compile_commands.json .; cmake .")
|
||||||
(c-c++ :variables
|
(c-c++ :variables
|
||||||
c-c++-default-mode-for-headers 'c++-mode
|
c-c++-default-mode-for-headers 'c++-mode
|
||||||
c-c++-backend 'lsp-ccls)
|
c-c++-backend 'lsp-ccls)
|
||||||
java
|
java
|
||||||
shell-scripts
|
shell-scripts
|
||||||
spacemacs-layouts
|
spacemacs-layouts
|
||||||
;debug
|
|
||||||
dap
|
dap
|
||||||
spacemacs-project
|
spacemacs-project
|
||||||
(python :variables
|
(python :variables
|
||||||
|
|
Loading…
Reference in New Issue