View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012599CMakeModulespublic2011-11-29 10:492012-04-02 10:10
ReporterMarcus T 
Assigned ToClinton Stimpson 
PriorityurgentSeverityblockReproducibilityalways
StatusclosedResolutionfixed 
PlatformAll platformsOSAllOS VersionAll
Product VersionCMake 2.8.6 
Target VersionFixed in Version 
Summary0012599: UseQt4.cmake fails at including module dependencies
DescriptionUseQt4.cmake fails at including proper dependencies. When Having QT_USE_QTDECLARATIVE enabled, based on the QT_QTDECLARATIVE_MODULE_DEPENDS it should include QT_QTOPENGL as well.

But since the FOREACH ( UseQt4.cmake Line 81 ) loops over QTOPENGL before QTDECLARATIVE, the first project does not link to QtOpengl.

( This bug just cost me a day of work )
Steps To ReproduceIn you CMakeLists.txt use:

find_package(Qt4 4.7.2 REQUIRED QtDeclarative)
message(STATUS "Libs: " ${QT_LIBRARIES}) # Will not print "libQtOpengl..."
add_subdirectory(./test)

In ./test/CMakeLists.txt do:

find_package(Qt4 4.7.2 REQUIRED QtDeclarative)
message(STATUS "Libs: " ${QT_LIBRARIES}) # WILL print "libQtOpengl..."


Additional InformationIn my opinion the whole dependency mechanism should be removed completely ( thats what I did for myself now ).

Its a) Error prone b) Incorrect ( declarative does not need OpenGL ) c) unncessary. Finding out which QtLibs you need is so easy.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0027869)
Clinton Stimpson (developer)
2011-11-29 11:08

Thanks for reporting. Its now fixed in the repository.
3cd08ce Qt4: Fix dependencies of QtDeclartive.
(0029053)
David Cole (manager)
2012-04-02 10:10

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-11-29 10:49 Marcus T New Issue
2011-11-29 11:08 Clinton Stimpson Note Added: 0027869
2011-11-29 11:08 Clinton Stimpson Status new => resolved
2011-11-29 11:08 Clinton Stimpson Resolution open => fixed
2011-11-29 11:08 Clinton Stimpson Assigned To => Clinton Stimpson
2012-04-02 10:10 David Cole Note Added: 0029053
2012-04-02 10:10 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team