From 654dd01525fe0e46e4bd084421c747ae223452c9 Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Wed, 3 May 2023 22:03:58 -0500 Subject: Force lowercase Fortran module file names (#2891) * fixed args in execvp for h5fuse * Force lowercase Fortran module file names for Cray compilers --- config/cmake/HDF5UseFortran.cmake | 6 ++++++ release_docs/RELEASE.txt | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/config/cmake/HDF5UseFortran.cmake b/config/cmake/HDF5UseFortran.cmake index aae7078..3e058ad 100644 --- a/config/cmake/HDF5UseFortran.cmake +++ b/config/cmake/HDF5UseFortran.cmake @@ -17,6 +17,12 @@ enable_language (Fortran) set (HDF_PREFIX "H5") + +# Force lowercase Fortran module file names +if (CMAKE_Fortran_COMPILER_ID STREQUAL "Cray") + set(CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -ef") +endif () + include (CheckFortranFunctionExists) include (CheckFortranSourceRuns) diff --git a/release_docs/RELEASE.txt b/release_docs/RELEASE.txt index d0ac38f..574d167 100644 --- a/release_docs/RELEASE.txt +++ b/release_docs/RELEASE.txt @@ -443,6 +443,12 @@ Bug Fixes since HDF5-1.14.0 release Fixes GitHub issues #1546 and #2259 + - Force lowercase Fortran module file names + + The Cray Fortran compiler uses uppercase Fortran module file names, which + caused CMake installs to fail. A compiler option was added to use lowercase + instead. + Tools ----- -- cgit v0.12