Merge topic 'FindQt4-ignore-qt5'

567d4d8d FindQt4: Don't further process qmake if it does not belong to Qt4
This commit is contained in:
Brad King 2014-06-30 14:50:37 -04:00 committed by CMake Topic Stage
commit 1a575a91d2
1 changed files with 2 additions and 1 deletions

View File

@ -518,7 +518,8 @@ set(QT4_INSTALLED_VERSION_TOO_OLD FALSE)
set(_QT4_QMAKE_NAMES qmake qmake4 qmake-qt4 qmake-mac)
_qt4_find_qmake("${_QT4_QMAKE_NAMES}" QT_QMAKE_EXECUTABLE QTVERSION)
if (QT_QMAKE_EXECUTABLE AND QTVERSION)
if (QT_QMAKE_EXECUTABLE AND
QTVERSION VERSION_GREATER 3 AND QTVERSION VERSION_LESS 5)
if (Qt5Core_FOUND)
# Qt5CoreConfig sets QT_MOC_EXECUTABLE as a non-cache variable to the Qt 5