MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0012599 | CMake | Modules | public | 2011-11-29 10:49 | 2012-04-02 10:10 |
| Reporter | Marcus T | ||||
| Assigned To | Clinton Stimpson | ||||
| Priority | urgent | Severity | block | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | All platforms | OS | All | OS Version | All |
| Product Version | CMake 2.8.6 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0012599: UseQt4.cmake fails at including module dependencies | ||||
| Description | UseQt4.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 Reproduce | In 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 Information | In 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. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||