1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
# Compiler specific flags for Intel Fortran compiler
if(WIN32)
set(no_optimize "-Od")
set(check_all "-check:all")
else()
set(no_optimize "-O0")
set(check_all "-check all")
endif()
set(disable_warning_for_long_names "-diag-disable 5462")
set(traceback "-traceback")
set(cpp "-cpp")
set(save-temps "-save-temps")
set(CMAKE_Fortran_Flags_ALL "${cpp} ${disable_warning_for_long_names}")
set(CMAKE_Fortran_FLAGS_DEBUG "${no_optimize} ${check_all} ${save-temps} ${CMAKE_Fortran_Flags_ALL} -save-temps")
set(CMAKE_Fortran_FLAGS_RELEASE "-O3 ${CMAKE_Fortran_Flags_ALL}")
add_definitions(-D_INTEL)
add_definitions(-D__ifort_18)
|