ENH: if qt4 qmake is found then set QT_QMAKE_EXECUTABLE to that value so that the same one will be used in FindQt4.cmake

This commit is contained in:
Bill Hoffman 2005-09-14 09:12:50 -04:00
parent 7f185a465b
commit f81412aedf
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ IF(QT_QMAKE_EXECUTABLE_FINDQT)
EXEC_PROGRAM(${QT_QMAKE_EXECUTABLE_FINDQT} ARGS "-query QT_VERSION"
OUTPUT_VARIABLE QTVERSION)
IF(QTVERSION MATCHES "4.*")
SET(QT_QMAKE_EXECUTABLE ${QT_QMAKE_EXECUTABLE_FINDQT} CACHE PATH "QT4 qmake program.")
SET(QT4_INSTALLED TRUE)
ENDIF(QTVERSION MATCHES "4.*")
IF(QTVERSION MATCHES "Unknown")