MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0008646 | CMake | Modules | public | 2009-03-01 17:08 | 2016-06-10 14:30 |
| Reporter | Conrad | ||||
| Assigned To | Clinton Stimpson | ||||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-6 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0008646: UseQt4: Make adding various Qt module INCLUDE_DIRECTORIES optional | ||||
| Description | Qt4 now supports framework-style includes, e.g.: #include <QtGui/QLabel> #include <QtCore/QString> #include <QtNetwork/QHttp> When using framework-style includes, it is not necessary to add each individual Qt module's include directory to the INCLUDE path; only QTDIR/include needs to be in the INCLUDE path. However, UseQt4.cmake automatically adds the path for each individual module being used with the line: INCLUDE_DIRECTORIES(${QT_${module}_INCLUDE_DIR}) Projects using framework-style includes do not need this; it makes compile lines longer, can slow compilation time (albeit slightly), and prevents us from enforcing the use of Qt framework-style includes within our project. I'd suggest a simple boolean option variable like QT_FRAMEWORK_STYLE_INCLUDES which, if defined, would skip the above single line in UseQt4.cmake. However, perusing the bugs I see a brand new COMPONENT style FindQt4.cmake, which looks fantastic and I really look forward to using it! So perhaps this would better be specified as a keyword/option to the new COMPONENTS-style version of FindQt4? | ||||
| Steps To Reproduce | |||||
| Additional Information | In our local installations, we've simply commented out the "INCLUDE_DIRECTORIES(${QT_${module}_INCLUDE_DIR})" in our CMake installation's share\cmake-2.6\Modules\UseQt4.cmake file, and everything works as desired. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2009-03-01 17:08 | Conrad | New Issue | |||
| 2009-03-01 17:20 | Bill Hoffman | Status | new => assigned | ||
| 2009-03-01 17:20 | Bill Hoffman | Assigned To | => Clinton Stimpson | ||
| 2010-05-09 04:09 | Alex Neundorf | Category | CMake => Modules | ||
| 2012-08-13 23:25 | Clinton Stimpson | Status | assigned => backlog | ||
| 2013-11-02 09:49 | Stephen Kelly | Note Added: 0034319 | |||
| 2016-06-10 14:27 | Kitware Robot | Note Added: 0041507 | |||
| 2016-06-10 14:27 | Kitware Robot | Status | backlog => resolved | ||
| 2016-06-10 14:27 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:30 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||