Skip to content

Commit

Permalink
Merge pull request #4 from roysc/master
Browse files Browse the repository at this point in the history
fix call to directory-file-name(nil) when cmake-project-build-directory ...
  • Loading branch information
alamaison committed Oct 11, 2013
2 parents d1cae9d + 4bc2c88 commit d7b3e14
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake-project.el
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,9 @@ BUILD-DIRECTORY is the path to the build-tree directory. If the
directory does not already exist, it will be created. The source
directory is found automatically based on the current buffer."
(interactive
(let ((directory-parts (cmake-project--split-directory-path
cmake-project-build-directory)))
(let ((directory-parts
(when cmake-project-build-directory (cmake-project--split-directory-path
cmake-project-build-directory))))
(let ((root (car directory-parts))
(directory-name (cdr directory-parts)))
(list (read-directory-name
Expand Down

0 comments on commit d7b3e14

Please sign in to comment.