[cmake-developers] [CMake 0011619]: qmake-qt4 not found in 2.8.3 if qmake is from Qt 3

Mantis Bug Tracker mantis at public.kitware.com
Fri Dec 17 11:04:01 EST 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11619 
====================================================================== 
Reported By:                Sam Hartsfield
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11619
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2010-12-17 11:04 EST
Last Modified:              2010-12-17 11:04 EST
====================================================================== 
Summary:                    qmake-qt4 not found in 2.8.3 if qmake is from Qt 3
Description: 
On my RHEL4/5 systems, the qmake in the path (and QTDIR) is version 3, so when
using Qt 4, qmake-qt4 has to be used. FindQt4.cmake supports this, and it worked
in CMake 2.8.2, but it's broken in CMake 2.8.3:

CMake Error at
/opt/cmake-2.8.3-Linux-i386/share/cmake-2.8/Modules/FindQt4.cmake:1148
(MESSAGE):
  Qt qmake not found!

The problem appears to be line 482: "_qt4_query_qmake(QT_VERSION QTVERSION)".
QTVERSION doesn't get set. Compare that to line 385 in 2.8.2, where EXEC_PROGRAM
is called on the qmake executable to test the version.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-12-17 11:04 Sam Hartsfield New Issue                                    
======================================================================




More information about the cmake-developers mailing list