[CMake] FindQt4 patch

William A. Hoffman billlist at nycap.rr.com
Fri Mar 24 17:30:38 EST 2006



At 05:23 PM 3/24/2006, Tanner Lovelace wrote:
>Greetings,
>
>The current FindQt4.cmake script has a small problem where it
>does a FIND_PACKAGE(X11 ...) if it's on Unix.  The problem
>with this is that OS X is considered to be Unix but Qt on OS X
>can be either X11 or native mac without X11 at all.
>
>So, this patch checks for the actual window system defines
>set by Qt and only does the X11 check if the Qt found is an
>X11 Qt.  In addition, the symbols should be exported for others
>to use them to check for the same thing accordingly.
>
>Please look over the patch and if it looks good, could one of
>the developers apply it?

Right now KDE has its own copy of FindQt4.cmake, so it may be better
to incorporate your changes into the KDE version first.   That version
will become part of CMake once it has been tested, and will be part of 2.4.
The change sounds very good, so I don't think it will be a problem
to incorporate it.

-Bill



More information about the CMake mailing list