Skip to content

Fix for projects not using cmake #71

@berhoel

Description

@berhoel

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions