summaryrefslogtreecommitdiffstats
path: root/Modules/FindQt.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FindQt.cmake')
-rw-r--r--Modules/FindQt.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/FindQt.cmake b/Modules/FindQt.cmake
index 41e2776..0cc53e0 100644
--- a/Modules/FindQt.cmake
+++ b/Modules/FindQt.cmake
@@ -42,8 +42,8 @@ SET(GLOB_TEMP_VAR)
# now find qmake
FIND_PROGRAM(QT_QMAKE_EXECUTABLE_FINDQT NAMES qmake PATHS "${QT_SEARCH_PATH}/bin" "$ENV{QTDIR}/bin")
-IF(QT_QMAKE_EXECUTABLE)
- EXEC_PROGRAM(${QMAKE_PATH} ARGS "-query QT_VERSION"
+IF(QT_QMAKE_EXECUTABLE_FINDQT)
+ EXEC_PROGRAM(${QT_QMAKE_EXECUTABLE_FINDQT} ARGS "-query QT_VERSION"
OUTPUT_VARIABLE QTVERSION)
IF(QTVERSION MATCHES "4.*")
SET(QT4_INSTALLED TRUE)
@@ -51,10 +51,10 @@ IF(QT_QMAKE_EXECUTABLE)
IF(QTVERSION MATCHES "Unknown")
SET(QT3_INSTALLED TRUE)
ENDIF(QTVERSION MATCHES "Unknown")
-ENDIF(QT_QMAKE_EXECUTABLE)
+ENDIF(QT_QMAKE_EXECUTABLE_FINDQT)
-IF(QT_QMAKE_EXECUTABLE)
- EXEC_PROGRAM( ${QT_QMAKE_EXECUTABLE}
+IF(QT_QMAKE_EXECUTABLE_FINDQT)
+ EXEC_PROGRAM( ${QT_QMAKE_EXECUTABLE_FINDQT}
ARGS "-query QT_INSTALL_HEADERS"
OUTPUT_VARIABLE qt_headers )
ENDIF(QT_QMAKE_EXECUTABLE)