mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06:00
Since LCC 1.26.03, compiler developers decided to rename liblfortran to libgfortran (internal reference: mcstbug#131633), and despite it's stated that "-llfortran will be automatically treated as -lgfortran", it actually does not work (and there's even no symlinks like liblfortran.* -> libgfortran.*); so we have to explicitly choose which library we have to link in. Fixes: #23646
8 lines
252 B
CMake
8 lines
252 B
CMake
include(Platform/Linux-LCC)
|
|
__linux_compiler_lcc(Fortran)
|
|
if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS "1.26.03")
|
|
set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-llfortran")
|
|
else()
|
|
set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-lgfortran")
|
|
endif()
|