diff options
author | Brad King <brad.king@kitware.com> | 2022-06-28 13:15:08 +0000 |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-06-28 09:15:24 -0400 |
commit | 808cbb716200377d92fc0987a27eaf3b23e83d99 (patch) | |
tree | f25ab6c6952cf8a8cb9f059334614e48a9b8f1d1 /Modules/Platform | |
parent | 10bacfb26b77ebe686537f1ea5d76bc5308b86ab (diff) | |
parent | 57da7a4925fe687f8a66e03034271f33936a7bc6 (diff) | |
download | cmake-808cbb716200377d92fc0987a27eaf3b23e83d99.tar.gz |
Merge topic 'lcc-liblfortran-renamed'
57da7a4925 LCC: link with -lgfortran instead of -llfortran since 1.26.03
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7407
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Linux-LCC-Fortran.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/Platform/Linux-LCC-Fortran.cmake b/Modules/Platform/Linux-LCC-Fortran.cmake index d3a4cf47a5..bf2a1c2d68 100644 --- a/Modules/Platform/Linux-LCC-Fortran.cmake +++ b/Modules/Platform/Linux-LCC-Fortran.cmake @@ -1,3 +1,7 @@ include(Platform/Linux-LCC) __linux_compiler_lcc(Fortran) -set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-llfortran") +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() |