summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2012-08-16 00:14:40 (GMT)
committerClinton Stimpson <clinton@elemtech.com>2012-08-16 00:14:40 (GMT)
commit4a772a16865be1c1dc2937fc3963c7a67f5316f2 (patch)
tree50bae71b63e5c4d5d5e4ca32462120e1e6a0f00b
parentaddefc2ae3b33a75a7152730146b46b319118a24 (diff)
downloadCMake-4a772a16865be1c1dc2937fc3963c7a67f5316f2.zip
CMake-4a772a16865be1c1dc2937fc3963c7a67f5316f2.tar.gz
CMake-4a772a16865be1c1dc2937fc3963c7a67f5316f2.tar.bz2
Fix regex for qt minor version.
Thanks to Dubrovskiy Viacheslav and Sergei Epifanov for patch.
-rw-r--r--Modules/FindQt4.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
index e7d25c9..fac8579 100644
--- a/Modules/FindQt4.cmake
+++ b/Modules/FindQt4.cmake
@@ -1149,7 +1149,7 @@ if (QT_QMAKE_EXECUTABLE AND QTVERSION)
# set version variables
string(REGEX REPLACE "^([0-9]+)\\.[0-9]+\\.[0-9]+.*" "\\1" QT_VERSION_MAJOR "${QTVERSION}")
- string(REGEX REPLACE "^[0-9]+\\.([0-9])+\\.[0-9]+.*" "\\1" QT_VERSION_MINOR "${QTVERSION}")
+ string(REGEX REPLACE "^[0-9]+\\.([0-9]+)\\.[0-9]+.*" "\\1" QT_VERSION_MINOR "${QTVERSION}")
string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1" QT_VERSION_PATCH "${QTVERSION}")
endif()