Skip to content

Commit

Permalink
Merge pull request #5 from hrehfeld/master
Browse files Browse the repository at this point in the history
fix: if cmake-project-build-directory is existing, use that instead of r...
  • Loading branch information
alamaison committed Dec 6, 2013
2 parents d7b3e14 + d3f0162 commit 5754f60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmake-project.el
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,10 @@ build tools such as the CompileCommand and Flymake."

(make-local-variable 'cmake-project-build-directory)
(make-local-variable 'compile-command)

(cmake-project--changed-build-directory (cmake-project-find-build-directory))
(let ((build-directory (if cmake-project-build-directory
cmake-project-build-directory
(cmake-project-find-build-directory))))
(cmake-project--changed-build-directory build-directory))

(ad-enable-advice
'flymake-get-file-name-mode-and-masks 'around 'cmake-flymake-advice)
Expand Down

0 comments on commit 5754f60

Please sign in to comment.