[cmake-developers] Fwd: Bug#392473: cmake: FindQT4 doesn't find qt4 if qt3 is installed

Brad King brad.king at kitware.com
Thu Oct 12 09:08:23 EDT 2006


Andy Cedilnik wrote:
> ---------- Forwarded message ----------
> From: *Jiří Paleček* <jpalecek at web.de <mailto:jpalecek at web.de>>
> Date: Oct 11, 2006 5:07 PM
> Subject: Bug#392473: cmake: FindQT4 doesn't find qt4 if qt3 is installed
> To: "submit at bugs.debian.org <mailto:submit at bugs.debian.org>"
> <submit at bugs.debian.org <mailto:submit at bugs.debian.org>>
> 
> Package: cmake
> Version: 2.4.3-1
> Severity: normal
> Tags: patch
> 
> Hello,
> 
> I found that cmake will not find qt4 if it is installed together with qt3.
> The problem seems to be line 175 in FindQt4
> 
> FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake qmake-qt4 PATHS
> 
> I think it finds qmake (which is from qt3) only to discover it has a wrong
> version. This can be corrected by reversing the order of alternatives
> 
> FIND_PROGRAM(QT_QMAKE_EXECUTABLE NAMES qmake-qt4 qmake PATHS
> 
> This way, it will always find the correct version.

It's amazing how many times this suggestion has come up even though it
doesn't work in all cases.  Bill, you recently fixed this bug by
checking the version of qmake found, right?

-Brad



More information about the cmake-developers mailing list