From 5434547678223c79c18429f7b1c75d0634f60185 Mon Sep 17 00:00:00 2001 From: makise-homura Date: Thu, 16 Feb 2023 00:05:16 +0300 Subject: LCC: Don't require liblfortran on lcc versions that don't have it There wasn't a liblfortran library before 1.24 (actually 1.24.01), and it is replaced by libgfortran in 1.26.03 and later. --- Modules/Platform/Linux-LCC-Fortran.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Modules/Platform') diff --git a/Modules/Platform/Linux-LCC-Fortran.cmake b/Modules/Platform/Linux-LCC-Fortran.cmake index bf2a1c2d68..166c06a44e 100644 --- a/Modules/Platform/Linux-LCC-Fortran.cmake +++ b/Modules/Platform/Linux-LCC-Fortran.cmake @@ -1,7 +1,7 @@ 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() +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") endif() -- cgit v1.2.1