FindQt3: Prefer (moc|uic)-qt3 names over (moc|uic)

On Debian moc and uic from Qt3 have '-qt3' suffixes.  The latter names
might come from Qt4, so prefer the version-specific names.

Patch from Modestas Vainius.  See issue #9659.
This commit is contained in:
Brad King 2009-10-05 10:25:36 -04:00
parent b304186bc5
commit a0e63cff1d
1 changed files with 3 additions and 2 deletions

View File

@ -138,7 +138,7 @@ FIND_LIBRARY(QT_QASSISTANTCLIENT_LIBRARY
# qt 3 should prefer QTDIR over the PATH # qt 3 should prefer QTDIR over the PATH
FIND_PROGRAM(QT_MOC_EXECUTABLE FIND_PROGRAM(QT_MOC_EXECUTABLE
NAMES moc moc-qt3 NAMES moc-qt3 moc
HINTS HINTS
$ENV{QTDIR}/bin $ENV{QTDIR}/bin
PATHS PATHS
@ -160,7 +160,8 @@ IF(QT_MOC_EXECUTABLE)
ENDIF(QT_MOC_EXECUTABLE) ENDIF(QT_MOC_EXECUTABLE)
# qt 3 should prefer QTDIR over the PATH # qt 3 should prefer QTDIR over the PATH
FIND_PROGRAM(QT_UIC_EXECUTABLE uic FIND_PROGRAM(QT_UIC_EXECUTABLE
NAMES uic-qt3 uic
HINTS HINTS
$ENV{QTDIR}/bin $ENV{QTDIR}/bin
PATHS PATHS