Added -DCMAKE_EXPORT_COMPILE_COMMANDS=ON to cmake-ide options.
This commit is contained in:
parent
2758a7ff4e
commit
7207d3b5cb
9
init.el
9
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
|
||||
|
|
Loading…
Reference in New Issue
Block a user