Attempt to make ifort 17 work

This commit is contained in:
Kareem Sorathia
2021-02-26 11:17:51 -05:00
parent f35a877143
commit fc8bd5161a
4 changed files with 33 additions and 7 deletions

View File

@@ -25,9 +25,12 @@ endif()
#-------------
#Set minimum compiler versions
if(CMAKE_Fortran_COMPILER_ID MATCHES Intel)
if(CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 18.0)
if(CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 17.0)
message("Fortran compiler too old! What, were you gonna use punch cards?")
message(FATAL_ERROR "ifort > 18.0 required")
message(FATAL_ERROR "ifort > 17.0 required")
elseif( (CMAKE_Fortran_COMPILER_VERSION VERSION_GREATER_EQUAL 17.0) AND (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 18.0) )
message(WARNING "Compiler has incomplete F2008 features, Git hash/compiler information won't be saved to H5 files")
add_compile_definitions(__INTEL_COMPILER_OLD)
endif()
elseif(CMAKE_Fortran_COMPILER_ID MATCHES GNU)
if(CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 8.0)