Skip to content
Snippets Groups Projects
Commit ab1359d6 authored by Lionel GUEZ's avatar Lionel GUEZ
Browse files

Change Fortran flag for ifort 15

`-init=minus_huge` does not exist for ifort 15 and ifort 15 is the
most recent version available on Ciclad.
parent 83f21057
No related branches found
No related tags found
No related merge requests found
......@@ -31,8 +31,16 @@ elseif(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
" -check bounds,format,output_conversion,pointers,stack,uninit")
# Data:
string(APPEND CMAKE_Fortran_FLAGS " -auto -mcmodel=medium")
string(APPEND CMAKE_Fortran_FLAGS_DEBUG " -init=arrays,minus_huge,snan")
include(CheckFortranCompilerFlag)
check_fortran_compiler_flag("-init=minus_huge" HAS_FLAG)
if(HAS_FLAG)
string(APPEND CMAKE_Fortran_FLAGS_DEBUG " -init=arrays,minus_huge,snan")
else()
string(APPEND CMAKE_Fortran_FLAGS_DEBUG " -init=arrays,snan")
endif()
# Compiler diagnostics:
string(APPEND CMAKE_Fortran_FLAGS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment