[CMake] FindQt4 patch

Tanner Lovelace clubjuggler at gmail.com
Fri Mar 24 17:23:04 EST 2006


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?

Thanks very much!

Cheers,
Tanner Lovelace

--
Tanner Lovelace
clubjuggler at gmail dot com
http://wtl.wayfarer.org/
(fieldless) In fess two roundels in pale, a billet fesswise and an
increscent, all sable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: find-qt-type.patch
Type: application/octet-stream
Size: 1287 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060324/a77fa1bc/find-qt-type.obj


More information about the CMake mailing list