diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2010-10-15 22:36:14 (GMT) |
---|---|---|
committer | Clinton Stimpson <clinton@elemtech.com> | 2010-10-15 22:36:14 (GMT) |
commit | cfba5ef111bf86e8820a4dff556b3a9edc1484cd (patch) | |
tree | c003828b9bd29f602cbe5cb9ee4b99c9d63362f3 /Modules/FindQt4.cmake | |
parent | 2dae2f1a0b24c674b651fd6edf79c4b51177b4d6 (diff) | |
download | CMake-cfba5ef111bf86e8820a4dff556b3a9edc1484cd.zip CMake-cfba5ef111bf86e8820a4dff556b3a9edc1484cd.tar.gz CMake-cfba5ef111bf86e8820a4dff556b3a9edc1484cd.tar.bz2 |
Fix regression in 2dae2f1 which added find of Qt imports dir.
Diffstat (limited to 'Modules/FindQt4.cmake')
-rw-r--r-- | Modules/FindQt4.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindQt4.cmake b/Modules/FindQt4.cmake index 45bbd2e..6129329 100644 --- a/Modules/FindQt4.cmake +++ b/Modules/FindQt4.cmake @@ -482,7 +482,7 @@ IF (QT_QMAKE_EXECUTABLE) _qt4_query_qmake(QT_VERSION QTVERSION) # check for qt3 qmake and then try and find qmake4 or qmake-qt4 in the path - IF("${QTVERSION}" MATCHES "Unknown") + IF(NOT QTVERSION) SET(QT_QMAKE_EXECUTABLE NOTFOUND CACHE FILEPATH "" FORCE) FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake4 qmake-qt4 PATHS "[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\4.0.0;InstallDir]/bin" @@ -493,7 +493,7 @@ IF (QT_QMAKE_EXECUTABLE) IF(QT_QMAKE_EXECUTABLE) _qt4_query_qmake(QT_VERSION QTVERSION) ENDIF(QT_QMAKE_EXECUTABLE) - ENDIF("${QTVERSION}" MATCHES "Unknown") + ENDIF(NOT QTVERSION) # check that we found the Qt4 qmake, Qt3 qmake output won't match here STRING(REGEX MATCH "^[0-9]+\\.[0-9]+\\.[0-9]+" qt_version_tmp "${QTVERSION}") |