[CMake] 3.1 can't link my MinGW executables any more.
Brad King
brad.king at kitware.com
Mon Dec 1 11:33:21 EST 2014
On 11/29/2014 06:58 AM, Bill Somerville wrote:
> -lgfortran -lquadmath -lm -lkernel32 -luser32 -lgdi32 -lwinspool
> -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
>
> but in 3.1.0-rc2 I get:
>
> -lquadmath -lm -lkernel32 -luser32 -lgdi32 -lwinspool
> -lshell32 -lole32 -loleaut32 -luuid -lcomdlg32 -ladvapi32
The missing -lgfortran may be due to a failure to detect the implicit
libraries linked by the gfortran front-end. Compare these files:
CMakeFiles/3.0.2/CMakeFortranCompiler.cmake
CMakeFiles/3.1.0-rc2/CMakeFortranCompiler.cmake
In particular check the values of
CMAKE_Fortran_IMPLICIT_LINK_LIBRARIES
CMAKE_Fortran_IMPLICIT_LINK_DIRECTORIES
recorded in the two files. Check CMakeFiles/CMakeOutput.log and/or
CMakeFiles/CMakeError.log for information about how the values were
extracted. Something here may have changed in 3.1.
Thanks,
-Brad
More information about the CMake
mailing list