From 91977210fb88d162e354d9556407e65de0bc02c5 Mon Sep 17 00:00:00 2001 From: "M. Scot Breitenfeld" Date: Tue, 10 Oct 2023 14:38:28 -0500 Subject: [PATCH] added cmake ieee flag for nagfor --- config/cmake/HDFFortranCompilerFlags.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/cmake/HDFFortranCompilerFlags.cmake b/config/cmake/HDFFortranCompilerFlags.cmake index 86d04315720..425b6aa109e 100644 --- a/config/cmake/HDFFortranCompilerFlags.cmake +++ b/config/cmake/HDFFortranCompilerFlags.cmake @@ -51,6 +51,10 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU" AND NOT CMAKE_Fortran_COMPILER_VERS set (CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -fdiagnostics-urls=never -fno-diagnostics-color") 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