diff options
| author | Laurent Montel <montel@kde.org> | 2007-08-28 18:03:07 +0000 | 
|---|---|---|
| committer | Laurent Montel <montel@kde.org> | 2007-08-28 18:03:07 +0000 | 
| commit | b5549bfda03d789db352d33ad6f46a6ffe9a737a (patch) | |
| tree | 7fb83b2091da312537981f7cf229df45db63978b /automoc | |
| parent | de28279ebeb82d922f75294df81c211972936287 (diff) | |
| download | extra-cmake-modules-b5549bfda03d789db352d33ad6f46a6ffe9a737a.tar.gz extra-cmake-modules-b5549bfda03d789db352d33ad6f46a6ffe9a737a.tar.bz2 | |
add -DWIN32 to fix compilation on windows when we add 
#ifdef Q_OS_WIN on .h file as in akonadi
svn path=/trunk/KDE/kdelibs/; revision=705841
Diffstat (limited to 'automoc')
| -rw-r--r-- | automoc/kde4automoc.cpp | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/automoc/kde4automoc.cpp b/automoc/kde4automoc.cpp index 9983011e..b5368b1a 100644 --- a/automoc/kde4automoc.cpp +++ b/automoc/kde4automoc.cpp @@ -295,7 +295,10 @@ void AutoMoc::generateMoc(const QString &sourceFile, const QString &mocFileName)          QProcess *mocProc = new QProcess;          mocProc->setProcessChannelMode(QProcess::ForwardedChannels);          QStringList args(mocIncludes); -        args << "-o" << mocFilePath << sourceFile; +#ifdef Q_OS_WIN +	args << "-DWIN32"; +#endif +	args << "-o" << mocFilePath << sourceFile;          //qDebug() << "executing: " << mocExe << args;          mocProc->start(mocExe, args, QIODevice::NotOpen);          if (mocProc->waitForStarted()) | 
