From 719c92104fde5dd71c213be87681ba90bec5e5d9 Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 5 May 2019 00:03:01 +0200 Subject: [PATCH] Add generation of compile_commands.json to cmake-ide --- emacs/.spacemacs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/emacs/.spacemacs b/emacs/.spacemacs index 68ae60f..2050c18 100644 --- a/emacs/.spacemacs +++ b/emacs/.spacemacs @@ -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