summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt4.cmake
diff options
context:
space:
mode:
authorDaniel Scharrer <daniel@constexpr.org>2014-12-09 14:40:45 (GMT)
committerBrad King <brad.king@kitware.com>2014-12-09 15:43:02 (GMT)
commit009c1865dcc967a349be63a713c46ac88d297250 (patch)
tree4196c74269a46caf743de3d7a7a0163d006567b0 /Modules/FindQt4.cmake
parent95655dc730118202464f5ac8289af89c29c4a4a7 (diff)
downloadCMake-009c1865dcc967a349be63a713c46ac88d297250.zip
CMake-009c1865dcc967a349be63a713c46ac88d297250.tar.gz
CMake-009c1865dcc967a349be63a713c46ac88d297250.tar.bz2
FindQt4: Fix handling of QT_VERSION_MAJOR mismatch
Fix capitalization of Qt4_FOUND variable when setting it to false in this case. This caused find_package(Qt4) to appear successful when it was not. Note that the legacy QT4_FOUND variable is unconditionally overwritten at the end of the file with the value of Qt4_FOUND.
Diffstat (limited to 'Modules/FindQt4.cmake')
-rw-r--r--Modules/FindQt4.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake
index a79246a..11091b5 100644
--- a/Modules/FindQt4.cmake
+++ b/Modules/FindQt4.cmake
@@ -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()