Add generation of compile_commands.json to cmake-ide

This commit is contained in:
coolneng 2019-05-05 00:03:01 +02:00
parent 4d5808eb58
commit 719c92104f
1 changed files with 3 additions and 2 deletions

View File

@ -56,14 +56,15 @@ This function should only modify configuration layer settings."
;; spell-checking
syntax-checking
;; 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++-default-mode-for-headers 'c++-mode
c-c++-backend 'lsp-ccls)
java
shell-scripts
spacemacs-layouts
;debug
dap
spacemacs-project
(python :variables