f9dbe22ca2
Refactor options out of `Modules/Compiler/Intel-{ASM,C,CXX,Fortran}.cmake` into a common helper in `Modules/Compiler/Intel.cmake`. Condition them to be used only on non-Windows hosts where the Intel compiler is GNU-like instead of MSVC-like. Previously this worked only because the options were later overridden by `Modules/Platform/Windows-Intel*.cmake`, but it is cleaner to not set the options in the first place.
10 lines
453 B
CMake
10 lines
453 B
CMake
include(Compiler/Intel)
|
|
__compiler_intel(Fortran)
|
|
|
|
set(CMAKE_Fortran_MODDIR_FLAG "-module ")
|
|
set(CMAKE_Fortran_FORMAT_FIXED_FLAG "-fixed")
|
|
set(CMAKE_Fortran_FORMAT_FREE_FLAG "-free")
|
|
|
|
set(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE "<CMAKE_Fortran_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
|
set(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE "<CMAKE_Fortran_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|