branch: elpa/projectile commit 5c1b32d9548982d470c3fd48639fb0ec8d239c50 Author: John Eivind Helset <priv...@jehelset.no> Commit: Bozhidar Batsov <bozhi...@batsov.dev>
Make CMake version parsing more robust. --- projectile.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projectile.el b/projectile.el index f27e31beb7..e79a909c17 100644 --- a/projectile.el +++ b/projectile.el @@ -3166,7 +3166,7 @@ it acts on the current project." (defun projectile--cmake-version () "Compute CMake version." (let* ((string (shell-command-to-string "cmake --version")) - (match (string-match "^cmake version \\(.*\\)$" string))) + (match (string-match "^cmake version \\([0-9]+\\.[0-9]+\\.[0-9]+\\).*$" string))) (when match (version-to-list (match-string 1 string)))))