View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008542CMakeCMakepublic2009-02-16 12:372010-12-14 18:45
ReporterPau Garcia i Quiles 
Assigned ToClinton Stimpson 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in Version 
Summary0008542: FindQt4.cmake: support COMPONENTS and version
DescriptionCurrently, 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})
TagsNo tags attached.
Attached Filesdiff file icon FindQt4-use_components_and_version.diff [^] (8,126 bytes) 2009-02-16 12:37 [Show Content]

 Relationships

  Notes
(0015232)
Clinton Stimpson (developer)
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 (developer)
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 (manager)
2010-12-14 18:45

Closing bugs that have been resolved for more than 3 months without any further updates.

 Issue History
Date Modified Username Field Change
2009-02-16 12:37 Pau Garcia i Quiles New Issue
2009-02-16 12:37 Pau Garcia i Quiles File Added: FindQt4-use_components_and_version.diff
2009-02-16 12:48 Bill Hoffman Status new => assigned
2009-02-16 12:48 Bill Hoffman Assigned To => Clinton Stimpson
2009-02-19 15:52 Clinton Stimpson Note Added: 0015232
2009-02-19 16:05 Clinton Stimpson Note Added: 0015233
2009-02-19 16:05 Clinton Stimpson Status assigned => resolved
2009-02-19 16:05 Clinton Stimpson Resolution open => fixed
2010-12-14 18:45 David Cole Note Added: 0024013
2010-12-14 18:45 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team