On Dec 21, 2007, at 11:07 AM, Andreas Pakulat wrote:

On 21.12.07 18:46:53, Andreas Pakulat wrote:
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.

I was fooled by the CMakeError file. The problem is that for some reason FindQt4 wants to find both release and debug libraries. I don't have the former as I did a pure debug build (I don't need release libs). Is that
a known problem?



A debug only build should work. Did you leave your QT_QT*LIBRARY_RELEASE variables alone, so they should have NOT_FOUND in them?

Clint

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to