View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0014438 | CMake | Modules | public | 2013-09-24 12:29 | 2016-06-10 14:31 |
|
Reporter | Andreas Pakulat | |
Assigned To | Kitware Robot | |
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | moved | |
Platform | | OS | | OS Version | |
Product Version | CMake 2.8.11.2 | |
Target Version | | Fixed in Version | | |
|
Summary | 0014438: FindQt4.cmake uses QT_LIBINFIX for plugins which causes failure to find plugins |
Description | FindQt4.cmake uses find_library with a specially constructed name to setup CMake cache variables for the various Qt plugins. This uses the QT_LIBINFIX variable which is only set for Qt installations that were built with the -qtlibinfix configure option to change the standard library names.
This behaviour is incorrect, Qt does not change the name of plugins when building it with -qtlibinfix - unless you build for the Symbian platform. Hence FindQt4.cmake fails to find any Qt plugins which can lead to very subtle errors such as DeployQt4.cmake not being able to deploy plugins anymore (as it relies on the variables set up by FindQt4.cmake).
A simple removal of the QT_LIBINFIX variable around line 1322 fixes that. |
Steps To Reproduce | Build Qt4 with -qtlibinfix yourinfix
Run cmake on a Qt4 project using QMake from that Qt4
Check the CMakeCache.txt to verify that the QT_*PLUGIN* variables are set |
Tags | No tags attached. |
|
Attached Files | |
|