diff options
author | Scot Breitenfeld <brtnfld@hdfgroup.org> | 2023-10-11 20:16:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-11 20:16:01 (GMT) |
commit | 85c176247d2c434d9db535999a285daa13aa50b5 (patch) | |
tree | f2b7f2864585b3dd019d6f9adbe941d532eacc74 /config/cmake | |
parent | 6f56d06f6af371b8b8c58079d8200647df249ee2 (diff) | |
download | hdf5-85c176247d2c434d9db535999a285daa13aa50b5.zip hdf5-85c176247d2c434d9db535999a285daa13aa50b5.tar.gz hdf5-85c176247d2c434d9db535999a285daa13aa50b5.tar.bz2 |
Address nagfor exceptions stoppage. (#3658)
* added cmake ieee flag for nagfor
* generalized determining the nag compiler
* fixing some misc. NAG warnings
Diffstat (limited to 'config/cmake')
-rw-r--r-- | config/cmake/HDFFortranCompilerFlags.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/cmake/HDFFortranCompilerFlags.cmake b/config/cmake/HDFFortranCompilerFlags.cmake index 86d0431..e08df05 100644 --- a/config/cmake/HDFFortranCompilerFlags.cmake +++ b/config/cmake/HDFFortranCompilerFlags.cmake @@ -52,6 +52,11 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_Fortran_COMPILER_VERS endif () endif () +if (CMAKE_Fortran_COMPILER_ID STREQUAL "NAG") + message (STATUS "... Select IEEE floating-point mode full") + list (APPEND HDF5_CMAKE_Fortran_FLAGS "-ieee=full") +endif () + if (NOT MSVC AND NOT MINGW) # General flags if (CMAKE_Fortran_COMPILER_ID STREQUAL "Intel") |