[CMake] Fortran MinGW on Windows

Leek, Jim leek2 at llnl.gov
Fri May 31 16:49:17 EDT 2013


* What version of CMake are you using?

2.8.11

* What generator are you using?

MinGW Makefiles

* What is in the CMakeFiles/*/CMake*Compiler.cmake files
  for values like CMAKE_C_IMPLICIT_LINK_LIBRARIES?


CmakeCCompiler.cmake:
set(CMAKE_C_IMPLICIT_LINK_LIBRARIES "mingw32;moldname;mingwex;msvcrt;advapi32;shell32;user32;kernel32;mingw32;moldname;mingwex;msvcrt")

CmakeCXXCompiler.cmake:
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;mingw32;moldname;mingwex;msvcrt;advapi32;shell32;user32;kernel32;mingw32;moldname;mingwex;msvcrt")

CmakeFortranCompiler.cmake:
set(CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES "gfortran;mingw32;moldname;mingwex;msvcrt;quadmath;m;mingw32;moldname;mingwex;msvcrt;advapi32;shell32;user32;kernel32;mingw32;moldname;mingwex;msvcrt")

* Can you post a complete source example where it fails?

What would you like exactly?  Do you want me to make a reproducer?  The whole code is pretty large, but it's LGPL so I suppose I could send it to you if you want.  Where would I put it up?

-Brad


More information about the CMake mailing list