create *.lib implib for windows dll with mingw-w64
I'd like to instruct CMake to instruct mingw-w64 to create a *.lib
for the shared *.dll
C library
I'm trying to cross compile a lapack.dll (and the accompanying lapack.lib) from the lapack project
https://github.com/Reference-LAPACK/lapack
The resulting shared lib should be usable by MSVC (so I don't need to setup a fortran compiler on Windows). MSVC needs a *.lib
implib to link to the dll
I found the flag -Wl,--out-implib,libshared_dll.lib
from the following link
http://gernotklingler.com/blog/creating-using-shared-libraries-different-compilers-different-operating-systems/
I don't want to set custom CMAKE_Fortran_COMPILE_FLAGS
if I can avoid it. Also the created lapack-config.cmake
file should link to the *.lib
file instead of the now generated *.dll.a
file.