CHECK_SYMBOL_EXISTS() on FreeBSD

Matt Rogers mattr at kde.org
Tue Mar 13 22:56:37 CET 2007


On Mar 13, 2007, at 3:38 PM, Allen Winter wrote:

> Howdy,
>
> In FindQt4.cmake, there is this command
>
> CHECK_SYMBOL_EXISTS(Q_WS_X11 "QtCore/qglobal.h" Q_WS_X11)
>
> that I don't think is working with cmake v2.4.6 on FreeBSD 6.2-STABLE
>
> In CMakeCache. txt I see
> Q_WS_X11:INTERNAL=
> when it should have
> Q_WS_X11:INTERNAL=1
>
> If I correct that line by hand and re-run make, kdelibs builds fine.
>
> Is this a possible bug in cmake on FreeBSD?  Or is something else  
> wrong?
>
> Regards,
> Allen
>
> PS:  In FindQt4.cmake, should we have
>   CHECK_SYMBOL_EXISTS(Q_WS_X11 "QtCore/qglobal.h" Q_WS_X11)
>   CHECK_SYMBOL_EXISTS(Q_WS_MAC "QtCore/qglobal.h" Q_WS_MAC)
>   CHECK_SYMBOL_EXISTS(Q_WS_WIN "QtCore/qglobal.h" Q_WS_WIN)
>    if (NOT Q_WS_X11 AND NOT Q_WS_MAC AND NOT Q_WS_WIN)
>     message (FATAL_ERROR "BIG PROBLEM")
>   endif(NOT....)
>

Glad you got your first issue worked out. As for your second comment  
about the FATAL_ERROR if we can't find Qt, I don't recommend adding  
anything like that. CMake already does it for us via FIND_PACKAGE.  
That's what code like:

FIND_PACKAGE(Qt4 REQUIRED)

is for.

Thanks
--
Matt




More information about the Kde-buildsystem mailing list