-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Although some of my software projects use cmake not all do. For those projects who do not, the irony support in cpputils-cmake causes problems. This patch fixes the warnings for me:
*** cpputils-cmake.el_SAVE 2016-09-29 10:00:01.803673300 +0200
--- cpputils-cmake.el 2016-12-01 09:35:42.905213897 +0100
***************
*** 723,727 ****
;; irony compile-commands-path
! (if (fboundp 'irony-cdb-json-add-compile-commands-path)
(irony-cdb-json-add-compile-commands-path cppcm-src-dir (concat cppcm-build-dir "compile_commands.json")))
--- 723,728 ----
;; irony compile-commands-path
! (if (and cppcm-src-dir
! (fboundp 'irony-cdb-json-add-compile-commands-path))
(irony-cdb-json-add-compile-commands-path cppcm-src-dir (concat cppcm-build-dir "compile_commands.json")))
Metadata
Metadata
Assignees
Labels
No labels