MantisBT - CMake
View Issue Details
0008542CMakeCMakepublic2009-02-16 12:372010-12-14 18:45
Pau Garcia i Quiles 
Clinton Stimpson 
normalfeaturealways
closedfixed 
CMake-2-6 
 
0008542: FindQt4.cmake: support COMPONENTS and version
Currently, to specify what Qt4 modules you want to use, you need to use variables which are later checked by FindQt4.cmake and UseQt4.cmake: QT_USE_QTXML, QT_USE_QT, etc

Also, it was possible to specify the minimum Qt version you wanted to use (by means of the QT_MIN_VERSION varible) but not the maximum version.

The attached patch adds support for things like:
  FIND_PACKAGE( Qt4 4.4.3 EXACT COMPONENTS QtCore QtXml REQUIRED )

Best of all is the patch does not break source compatibility:
- it is still possible (although discouraged) to use the variables
- it is still possible to use QT_MIN_VERSION to specify the minimum Qt version

When using the COMPONENTS syntax, it is no longer necessary to use INCLUDE(${QT_USE_FILE})
No tags attached.
diff FindQt4-use_components_and_version.diff (8,126) 2009-02-16 12:37
https://public.kitware.com/Bug/file/2058/FindQt4-use_components_and_version.diff
Issue History
2009-02-16 12:37Pau Garcia i QuilesNew Issue
2009-02-16 12:37Pau Garcia i QuilesFile Added: FindQt4-use_components_and_version.diff
2009-02-16 12:48Bill HoffmanStatusnew => assigned
2009-02-16 12:48Bill HoffmanAssigned To => Clinton Stimpson
2009-02-19 15:52Clinton StimpsonNote Added: 0015232
2009-02-19 16:05Clinton StimpsonNote Added: 0015233
2009-02-19 16:05Clinton StimpsonStatusassigned => resolved
2009-02-19 16:05Clinton StimpsonResolutionopen => fixed
2010-12-14 18:45David ColeNote Added: 0024013
2010-12-14 18:45David ColeStatusresolved => closed

Notes
(0015232)
Clinton Stimpson   
2009-02-19 15:52   
The version part of the patch has been committed.

/cvsroot/CMake/CMake/Modules/FindQt4.cmake,v <-- FindQt4.cmake
new revision: 1.152; previous revision: 1.151
(0015233)
Clinton Stimpson   
2009-02-19 16:05   
The components part of the patch (modified).

/cvsroot/CMake/CMake/Modules/FindQt4.cmake,v <-- FindQt4.cmake
new revision: 1.153; previous revision: 1.152
(0024013)
David Cole   
2010-12-14 18:45   
Closing bugs that have been resolved for more than 3 months without any further updates.