Merge topic 'qt4-path-search'

35c6ae8 FindQt4: Give precedence to QTDIR environment variable, if set.
5a6a3d4 FindQt4: Give precedence to QTDIR environment variable, if set.
This commit is contained in:
David Cole 2012-08-20 15:40:36 -04:00 committed by CMake Topic Stage
commit 1239b4881d
1 changed files with 5 additions and 5 deletions

View File

@ -486,11 +486,11 @@ get_filename_component(qt_install_version "[HKEY_CURRENT_USER\\Software\\trollte
# check for qmake # check for qmake
# Debian uses qmake-qt4 # Debian uses qmake-qt4
# macports' Qt uses qmake-mac # macports' Qt uses qmake-mac
find_program(QT_QMAKE_EXECUTABLE NAMES qmake qmake4 qmake-qt4 qmake-mac PATHS find_program(QT_QMAKE_EXECUTABLE NAMES qmake qmake4 qmake-qt4 qmake-mac
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Qt3Versions\\4.0.0;InstallDir]/bin" PATHS
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\4.0.0;InstallDir]/bin" ENV QTDIR
"[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\${qt_install_version};InstallDir]/bin" "[HKEY_CURRENT_USER\\Software\\Trolltech\\Versions\\${qt_install_version};InstallDir]"
$ENV{QTDIR}/bin PATH_SUFFIXES bin
DOC "The qmake executable for the Qt installation to use" DOC "The qmake executable for the Qt installation to use"
) )