diff options
author | Brad King <brad.king@kitware.com> | 2021-01-22 09:37:09 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-01-22 09:38:57 -0500 |
commit | 2a5955ac0934ca11d706a8d6508561681e5a0581 (patch) | |
tree | 3afa4445d47acb2d85db2d47d1dc091b4a1f6ff1 /Modules | |
parent | 0df1fd9d43ccfbcb81d9925cfabba4b2daf525c8 (diff) | |
download | cmake-2a5955ac0934ca11d706a8d6508561681e5a0581.tar.gz |
Intel: Replace deprecated Fortran flag -nofor_main with -nofor-main
The `-nofor_main` flag was originally added by commit ccdd3e943d (Fix
Intel Fortran SHARED libraries on Linux, 2009-10-27, v2.8.2~915). Since
then, Intel Fortran renamed the option to `-nofor-main` and deprecated
the old name. The new name has been available for a long time, so
we can just switch to it.
Fixes: #21735
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/Linux-Intel-Fortran.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/Linux-Intel-Fortran.cmake b/Modules/Platform/Linux-Intel-Fortran.cmake index d8e94d0de6..a99e79342a 100644 --- a/Modules/Platform/Linux-Intel-Fortran.cmake +++ b/Modules/Platform/Linux-Intel-Fortran.cmake @@ -1,4 +1,4 @@ include(Platform/Linux-Intel) __linux_compiler_intel(Fortran) -string(APPEND CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS " -nofor_main") +string(APPEND CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS " -nofor-main") set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "") |