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

younker mac.younker at gmail.com
Sun Jun 10 10:15:02 BST 2007


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()
>
>   





More information about the kde-core-devel mailing list