From 7207d3b5cb63c6dc27c5c81b765ea9a057626838 Mon Sep 17 00:00:00 2001 From: tastytea Date: Mon, 15 Apr 2019 01:45:45 +0200 Subject: [PATCH] Added -DCMAKE_EXPORT_COMPILE_COMMANDS=ON to cmake-ide options. --- init.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index b35cfbf..74039fb 100644 --- a/init.el +++ b/init.el @@ -1,5 +1,5 @@ ;;; init.el --- tastytea's Emacs init file. -;; Time-stamp: <2019-04-14T23:37:34+00:00> +;; Time-stamp: <2019-04-14T23:45:28+00:00> ;;; Commentary: ;; I am using this file with Emacs 26, but most of it will probably work with @@ -241,8 +241,8 @@ With argument, do this that many times." :custom (projectile-project-compilation-dir "build") (projectile-project-configure-cmd - "cmake -DCMAKE_BUILD_TYPE=Debug \ --DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G 'Unix Makefiles' ..") + "cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \ +-G 'Unix Makefiles' ..") (projectile-switch-project-action 'neotree-projectile-action) :config (setq projectile-project-compilation-cmd (concat my/cmake-compile-command @@ -366,7 +366,8 @@ With argument, do this that many times." :after irony :custom (cmake-ide-build-dir "build") - (cmake-ide-cmake-opts "-DCMAKE_BUILD_TYPE=Debug") + (cmake-ide-cmake-opts + "-DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON") :config (cmake-ide-setup)) ) ; unless slow-computer