Mercurial > projects > qtd
changeset 399:e40f33cc0bf5
Explicitly include qglobal.h before all the ?master includes?.
This makes sure that macros like Q_CORE_EXPORT are already defined for all parsed header files.
Starting with this commit, QtD should build successfully against the pre-built Cocoa packages on OS X 10.6.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sun, 16 Jan 2011 00:56:21 +0100 |
parents | aa08a72d480a |
children | a81c53f7b83b |
files | generator/CMakeLists.txt |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/generator/CMakeLists.txt Sat Jan 15 22:52:06 2011 +0100 +++ b/generator/CMakeLists.txt Sun Jan 16 00:56:21 2011 +0100 @@ -200,6 +200,14 @@ OR NOT EXISTS ${jambi_inc}) file(REMOVE ${dgen_build_conf}) file(REMOVE ${jambi_inc}) + + # Explicitly include qglobal.h before all the »master includes« to make + # sure Q_CORE_EXPORT and other macros are already defined for all + # processed headers. Otherwise, the parser would choke on classes in files + # included before "qglobal.h" in <QtCore/QtCore> using one of these macros + # (e.g. QXmlStreamReader). + file(APPEND ${jambi_inc} "#include <${QT_QTCORE_INCLUDE_DIR}/qglobal.h>") + file(APPEND ${dgen_build_conf} "<typesystem>\n") foreach(package_normal ${packages}) string(TOLOWER ${package_normal} package)