diff options
| author | John Eivind Helset <private@jehelset.no> | 2025-05-04 18:44:08 +0200 |
|---|---|---|
| committer | Bozhidar Batsov <bozhidar@batsov.dev> | 2025-07-04 12:08:14 +0300 |
| commit | 5c1b32d9548982d470c3fd48639fb0ec8d239c50 (patch) | |
| tree | 8674c3b4b7067085517f6b9cf2800910dc99762a /projectile.el | |
| parent | 58e33ef298a843984aa7b590233c81c8560d14cd (diff) | |
Make CMake version parsing more robust.
Diffstat (limited to 'projectile.el')
| -rw-r--r-- | projectile.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/projectile.el b/projectile.el index f27e31b..e79a909 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))))) |
