From 6f01f9c5acde003554af93f8f33c85198ab0813d Mon Sep 17 00:00:00 2001
From: Joerg Bruehe <joerg@mysql.com>
Date: Tue, 2 Nov 2010 19:52:56 +0100
Subject: [PATCH] Fix cmake's version string handling (change proposed by
 Jonathan Perkin). Before this, a text suffix (like "-rc") after the numeric
 version was needed.

---
 cmake/mysql_version.cmake | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmake/mysql_version.cmake b/cmake/mysql_version.cmake
index 6adca2ccc2..886d7b9e8a 100644
--- a/cmake/mysql_version.cmake
+++ b/cmake/mysql_version.cmake
@@ -42,6 +42,9 @@ MACRO(GET_MYSQL_VERSION)
         IF(NOT VERSION_STRING)
           FILE(STRINGS  configure.in  str REGEX "AC_INIT\\(")
           STRING(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+[-][a-zAZ0-9]+" VERSION_STRING "${str}")
+          IF(NOT VERSION_STRING)
+            STRING(REGEX MATCH "[0-9]+\\.[0-9]+\\.[0-9]+" VERSION_STRING "${str}")
+          ENDIF()
         ENDIF()
       ENDIF()
     ENDIF()
-- 
2.30.9