[cmake-developers] [CMake 0014438]: FindQt4.cmake uses QT_LIBINFIX for plugins which causes failure to find plugins
Mantis Bug Tracker
mantis at public.kitware.com
Tue Sep 24 12:29:36 EDT 2013
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=14438
======================================================================
Reported By: Andreas Pakulat
Assigned To:
======================================================================
Project: CMake
Issue ID: 14438
Category: Modules
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2013-09-24 12:29 EDT
Last Modified: 2013-09-24 12:29 EDT
======================================================================
Summary: 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
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2013-09-24 12:29 Andreas PakulatNew Issue
======================================================================
More information about the cmake-developers
mailing list