Determining if the Q_WS_MAC exist failed with the following output: /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build make[1]: Entering directory `/home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp' /usr/local/bin/cmake -E cmake_progress_report /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o /usr/bin/gcc -I/home/kde4/qt-copy/include -o CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o -c /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CheckSymbolExists.c /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’: /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: ‘Q_WS_MAC’ undeclared (first use in this function) /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.) make[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o] Error 1 make[1]: Leaving directory `/home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp' make: *** [cmTryCompileExec/fast] Error 2 File /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include void cmakeRequireSymbol(int dummy,...){(void)dummy;} int main() { #ifndef Q_WS_MAC cmakeRequireSymbol(0,&Q_WS_MAC); #endif return 0; } Determining if the Q_WS_WIN exist failed with the following output: /usr/bin/make -f CMakeFiles/cmTryCompileExec.dir/build.make CMakeFiles/cmTryCompileExec.dir/build make[1]: Entering directory `/home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp' /usr/local/bin/cmake -E cmake_progress_report /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CMakeFiles 1 Building C object CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o /usr/bin/gcc -I/home/kde4/qt-copy/include -o CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o -c /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CheckSymbolExists.c /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CheckSymbolExists.c: In function ‘main’: /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: ‘Q_WS_WIN’ undeclared (first use in this function) /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: (Each undeclared identifier is reported only once /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CheckSymbolExists.c:8: error: for each function it appears in.) make[1]: *** [CMakeFiles/cmTryCompileExec.dir/CheckSymbolExists.o] Error 1 make[1]: Leaving directory `/home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp' make: *** [cmTryCompileExec/fast] Error 2 File /home/kde4/kde/build/kdesupport/CMakeFiles/CMakeTmp/CheckSymbolExists.c: /* */ #include void cmakeRequireSymbol(int dummy,...){(void)dummy;} int main() { #ifndef Q_WS_WIN cmakeRequireSymbol(0,&Q_WS_WIN); #endif return 0; }