Merge topic 'FindQt4-fix-major-version-mismatch'

009c1865 FindQt4: Fix handling of QT_VERSION_MAJOR mismatch
This commit is contained in:
Brad King 2014-12-12 11:16:02 -05:00 committed by CMake Topic Stage
commit f6c8d3d82f
1 changed files with 1 additions and 1 deletions

View File

@ -1321,7 +1321,7 @@ endif()
if (NOT QT_VERSION_MAJOR EQUAL 4)
set(VERSION_MSG "Found unsuitable Qt version \"${QTVERSION}\" from ${QT_QMAKE_EXECUTABLE}")
set(QT4_FOUND FALSE)
set(Qt4_FOUND FALSE)
if(Qt4_FIND_REQUIRED)
message( FATAL_ERROR "${VERSION_MSG}, this code requires Qt 4.x")
else()