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

David Faure faure at kde.org
Sun Jun 10 09:14:32 BST 2007


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

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list