[CMake] FindQt4.cmake fails
Andreas Pakulat
apaku at gmx.de
Fri Dec 21 12:46:53 EST 2007
Hi,
trying to build kdewin32 fails because CMake's CHECK_SYMBOL_EXISTS tries
to compile the following source:
,----
| #include <QtCore/qglobal.h>
|
| void cmakeRequireSymbol(int dummy,...){(void)dummy;}
| int main()
| {
| #ifndef Q_WS_MAC
| cmakeRequireSymbol(0,&Q_WS_MAC);
| #endif
| return 0;
| }
`----
This is on a win32 machine, with Qt4.3.3 installed in C:\qt-4.3.3 and
qmake is found properly. It bails out at the CHECK_SYMBOL_EXISTS. Using
CMake 2.4.7
Anybody with an idea? I don't quite understand why cmake generates this
code, it doesn't make the slightest sense - if Q_WS_MAC is not defined
it can't be used in a function call.
Andreas
--
You will be surprised by a loud noise.
More information about the CMake
mailing list