On Sat, Oct 06, 2007 at 04:36:25PM +0200, Stefan Schimanski wrote: > Hi! > > The cmake build system is broken for people using the framework > version of Qt on Mac. The following patch fixes this by using the > QT_INCLUDES variables from the FindQt4 module of cmake. This should > always point to the include directories, no matter which kind of Qt > one uses. Is there a reason against using this? > > Stefan > > > Index: development/cmake/src/frontends/qt4/CMakeLists.txt > =================================================================== > --- development/cmake/src/frontends/qt4/CMakeLists.txt (revision 20780) > +++ development/cmake/src/frontends/qt4/CMakeLists.txt (working copy) > @@ -24,7 +24,7 @@ > include_directories( > ${TOP_SRC_DIR}/src/frontends/qt4 > ${TOP_SRC_DIR}/src/frontends/controllers > - ${QT_INCLUDE_DIR} ${QT_INCLUDE_DIR}/QtCore ${QT_INCLUDE_DIR}/ > QtGui > + ${QT_INCLUDES} > ${CMAKE_CURRENT_BINARY_DIR}) > > if(MERGE_FILES)
Erm, I would expect that "unqualified" Qt includes (i.e. <QObject> vs <QtCore/QObject>) would not be foundthis way. Have you checked ti still compile on Windows or Linux after that change? Andre'