diff options
author | Robert Adam <dev@robert-adam.de> | 2020-07-02 08:51:13 +0300 |
---|---|---|
committer | Davide Beatrici <git@davidebeatrici.dev> | 2020-07-12 00:33:25 +0300 |
commit | cd67b90bf71961a86e26a02ba728ce504db48c0f (patch) | |
tree | 4f1c14d4e03434af858946d9675eaf25e9c32c36 | |
parent | 0b26fc7d3d78034512acc4655009f54ba086150a (diff) |
Make version RegEx more robust
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index adda32def..6c3e66a70 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,7 +10,7 @@ cmake_policy(SET CMP0091 NEW) set(version "1.4.0" CACHE STRING "Project version") -string(REGEX MATCH "[0-9].[0-9].[0-9]" version_short ${version}) +string(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]" version_short ${version}) project(Mumble VERSION ${version_short} |