Merge topic 'qt4-setversion-regression-43cb9b8'

6b9bc54 Fix regression in 43cb9b8.
This commit is contained in:
Brad King 2011-03-01 15:30:17 -05:00 committed by CMake Topic Stage
commit 79037a818e
1 changed files with 5 additions and 0 deletions

View File

@ -1119,6 +1119,11 @@ IF (QT_QMAKE_EXECUTABLE AND QTVERSION)
INCLUDE("${_qt4_current_dir}/Qt4Macros.cmake")
# 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_PATCH "${QTVERSION}")
ENDIF(QT_QMAKE_EXECUTABLE AND QTVERSION)
#support old QT_MIN_VERSION if set, but not if version is supplied by find_package()