zdoom-macos-deps/deps/cmake/share/cmake-3.25/Modules/Platform/Linux-LCC-Fortran.cmake
2023-01-10 16:43:43 +02:00

7 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()