[CMake] Qt4 module too restrictive about uic requirement

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Jan 14 03:35:12 EST 2011


On Mon, 10 Jan 2011 18:34:16 +0100
Thomas Petazzoni <thomas.petazzoni at free-electrons.com> wrote:

> The FindQt4 module requires the uic executable to be present, otherwise
> it declares the Qt installation as invalid and bails out.
> 
> However, Qt can be compiled without the GUI (which is interesting on
> embedded systems), and in this case, uic is not installed and not
> necessary. Therefore, the requirement of uic to be part of the standard
> Qt installation by CMake is a bit too restrictive. It should only
> require it when the QT_GUI component is used.
> 
> I have worked around the problem using the following patch, but it
> isn't correct as it completely removes the check for uic.
> Unfortunately, my CMake-fu is still very limited, so I don't really
> know what's the proper way of checking this.

Ping ?

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com


More information about the CMake mailing list