diff options
author | Brad King <brad.king@kitware.com> | 2022-06-28 13:15:08 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-06-28 13:15:23 (GMT) |
commit | 746bed40f2823931c411657a18be6807e6f45a4f (patch) | |
tree | ebfcc0b9d88b2a4aff0b90189963131699504e26 | |
parent | 8c562ece28b7a13ddb734b8c51710ebafe9ac570 (diff) | |
parent | 57da7a4925fe687f8a66e03034271f33936a7bc6 (diff) | |
download | CMake-746bed40f2823931c411657a18be6807e6f45a4f.zip CMake-746bed40f2823931c411657a18be6807e6f45a4f.tar.gz CMake-746bed40f2823931c411657a18be6807e6f45a4f.tar.bz2 |
Merge topic 'lcc-liblfortran-renamed' into release-3.24
57da7a4925 LCC: link with -lgfortran instead of -llfortran since 1.26.03
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !7407
-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 d3a4cf4..bf2a1c2 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() |