summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-09-14 13:12:50 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-09-14 13:12:50 (GMT)
commitf81412aedf3f14b463feb03c64aa68aa42e5ef7e (patch)
tree558f588e34f598182608cc9451b2b304c9541be7 /Modules
parent7f185a465b7dee3c2696ba7295f556cac9887558 (diff)
downloadCMake-f81412aedf3f14b463feb03c64aa68aa42e5ef7e.zip
CMake-f81412aedf3f14b463feb03c64aa68aa42e5ef7e.tar.gz
CMake-f81412aedf3f14b463feb03c64aa68aa42e5ef7e.tar.bz2
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
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindQt.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindQt.cmake b/Modules/FindQt.cmake
index 0d5e90a..4ee56f8 100644
--- a/Modules/FindQt.cmake
+++ b/Modules/FindQt.cmake
@@ -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")