zdoom-macos-deps/deps/cmake/share/cmake-3.25/Modules/Platform/Linux-LCC-Fortran.cmake

8 lines
252 B
CMake
Raw Normal View History

2023-01-10 14:42:48 +00:00
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()