Added -DCMAKE_EXPORT_COMPILE_COMMANDS=ON to cmake-ide options.

This commit is contained in:
tastytea 2019-04-15 01:45:45 +02:00
parent 2758a7ff4e
commit 7207d3b5cb

View File

@ -1,5 +1,5 @@
;;; init.el --- tastytea's Emacs init file. ;;; 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: ;;; Commentary:
;; I am using this file with Emacs 26, but most of it will probably work with ;; 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 :custom
(projectile-project-compilation-dir "build") (projectile-project-compilation-dir "build")
(projectile-project-configure-cmd (projectile-project-configure-cmd
"cmake -DCMAKE_BUILD_TYPE=Debug \ "cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -G 'Unix Makefiles' ..") -G 'Unix Makefiles' ..")
(projectile-switch-project-action 'neotree-projectile-action) (projectile-switch-project-action 'neotree-projectile-action)
:config :config
(setq projectile-project-compilation-cmd (concat my/cmake-compile-command (setq projectile-project-compilation-cmd (concat my/cmake-compile-command
@ -366,7 +366,8 @@ With argument, do this that many times."
:after irony :after irony
:custom :custom
(cmake-ide-build-dir "build") (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 :config
(cmake-ide-setup)) (cmake-ide-setup))
) ; unless slow-computer ) ; unless slow-computer