mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
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
5 lines
182 B
CMake
5 lines
182 B
CMake
include(Platform/Linux-Intel)
|
|
__linux_compiler_intel(Fortran)
|
|
string(APPEND CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS " -nofor-main")
|
|
set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "")
|