mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 04:10:05 -06:00
LCC < 1.24 has no way to disable integrated Fortran preprocessor, and it can't produce preprocessed files explicitly. So we disable all functionality (and therefore tests) related to it.
10 lines
383 B
CMake
10 lines
383 B
CMake
include(Platform/Linux-LCC)
|
|
__linux_compiler_lcc(Fortran)
|
|
if (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL "1.26.03")
|
|
set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-lgfortran")
|
|
elseif (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL "1.24.01")
|
|
set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-llfortran")
|
|
else()
|
|
unset(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE)
|
|
endif()
|