I think OP should have mentioned that the project is C-only, eg:

$ cat CMakeLists.txt
cmake_minimum_required (VERSION 2.8)
project (test C)
add_executable (test test.c)

In which case I also get:

$ 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.

  It fails with the following output:

   Change Dir: /tmp/c/build/CMakeFiles/CMakeTmp



  Run Build Command:/usr/bin/make "cmTryCompileExec2019270722/fast"

  /usr/bin/make -f CMakeFiles/cmTryCompileExec2019270722.dir/build.make
  CMakeFiles/cmTryCompileExec2019270722.dir/build

  make[1]: Entering directory `/tmp/c/build/CMakeFiles/CMakeTmp'

  /usr/bin/cmake -E cmake_progress_report
  /tmp/c/build/CMakeFiles/CMakeTmp/CMakeFiles 1

  Building C object
  CMakeFiles/cmTryCompileExec2019270722.dir/testCCompiler.c.o

  /usr/bin/i686-w64-mingw32-gcc -o
  CMakeFiles/cmTryCompileExec2019270722.dir/testCCompiler.c.o -c
  /tmp/c/build/CMakeFiles/CMakeTmp/testCCompiler.c

  Linking C executable cmTryCompileExec2019270722

  /usr/bin/cmake -E cmake_link_script
  CMakeFiles/cmTryCompileExec2019270722.dir/link.txt --verbose=1

  /usr/bin/i686-w64-mingw32-gcc
  CMakeFiles/cmTryCompileExec2019270722.dir/testCCompiler.c.o -o
  cmTryCompileExec2019270722 -rdynamic

  i686-w64-mingw32-gcc: error: unrecognized option '-rdynamic'

  make[1]: *** [cmTryCompileExec2019270722] Error 1

  make[1]: Leaving directory `/tmp/c/build/CMakeFiles/CMakeTmp'

  make: *** [cmTryCompileExec2019270722/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:2 (project)


-- Configuring incomplete, errors occurred!


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to