Build KDE on Mac OS with Qt Framework (Patch for FindQt4.cmake)

Alexander Neundorf neundorf at kde.org
Mon Jun 11 00:21:50 BST 2007


On Sunday 10 June 2007 05:15, younker wrote:
> Yes,
>
> This should be better, by using this we can build KDE agaist the QT
> framework installation.
>
> David Faure 写道:
> > On Saturday 09 June 2007, younker wrote:
> >> + IF( QT_USE_FRAMEWORKS )
> >> + SET(CMAKE_REQUIRED_FLAGS "-F${QT_LIBRARY_DIR} ")
> >> + CHECK_SYMBOL_EXISTS(Q_WS_MAC "QtCore/qglobal.h" Q_WS_MAC)
> >> + ELSE( QT_USE_FRAMEWORKS )
> >> + CHECK_SYMBOL_EXISTS(Q_WS_MAC "QtCore/qglobal.h" Q_WS_MAC)
> >> + ENDIF( QT_USE_FRAMEWORKS )
> >
> > Duplicated line and cmake_required_flags isn't ever reset (shouldn't it
> > be?) Seems like this should be
> >
> > macro_push_required_vars()
> > IF( QT_USE_FRAMEWORKS )
> >     SET(CMAKE_REQUIRED_FLAGS "-F${QT_LIBRARY_DIR} ")
> > ENDIF( QT_USE_FRAMEWORKS )
> > CHECK_SYMBOL_EXISTS(Q_WS_MAC "QtCore/qglobal.h" Q_WS_MAC)
> > macro_pop_required_vars()

Yes, looks good, please commit.

Bye
Alex




More information about the kde-core-devel mailing list