On 10/04/2014 08:58 AM, Mathieu Malaterre wrote: > I think OP should have mentioned that the project is C-only, eg:
Yes. Your --out-implib problem was due to trying to use the Linux host C++ compiler for cross-compiling to Windows. To build a project using C++ one would also need: -DCMAKE_CXX_COMPILER=i686-w64-mingw32-g++ > $ cmake -G 'Unix Makefiles' -DCMAKE_SYSTEM_NAME=Windows > -DCMAKE_C_COMPILER=i686-w64-mingw32-gcc > -DCMAKE_RC_COMPILER=i686-w64-mingw32-windres .. > -- The C compiler identification is GNU 4.6.3 > -- Check for working C compiler: /usr/bin/i686-w64-mingw32-gcc > -- Check for working C compiler: /usr/bin/i686-w64-mingw32-gcc -- broken > CMake Error at /usr/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:61 > (message): > The C compiler "/usr/bin/i686-w64-mingw32-gcc" is not able to compile a > simple test program. [snip] > i686-w64-mingw32-gcc: error: unrecognized option '-rdynamic' I cannot reproduce that with CMake 3.0. -Brad -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

