summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Kosukhin <sergey.kosukhin@mpimet.mpg.de>2021-08-20 15:00:14 +0200
committerGitHub <noreply@github.com>2021-08-20 15:00:14 +0200
commitc0bb2b99433929ceb3e1ffdb45935de13e853a92 (patch)
treea0dd02cbec90d1fcb2fe9c6a8d379b4f68173259
parentb1755c4fb32ade93321ce90c53a953e56d04251d (diff)
downloadspack-c0bb2b99433929ceb3e1ffdb45935de13e853a92.tar.gz
spack-c0bb2b99433929ceb3e1ffdb45935de13e853a92.tar.bz2
spack-c0bb2b99433929ceb3e1ffdb45935de13e853a92.tar.xz
spack-c0bb2b99433929ceb3e1ffdb45935de13e853a92.zip
hdf5: support for Cray Fortran Compiler (#25466)
-rw-r--r--var/spack/repos/builtin/packages/hdf5/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/hdf5/package.py b/var/spack/repos/builtin/packages/hdf5/package.py
index e188bb94b1..13a4f0746f 100644
--- a/var/spack/repos/builtin/packages/hdf5/package.py
+++ b/var/spack/repos/builtin/packages/hdf5/package.py
@@ -202,6 +202,12 @@ class Hdf5(CMakePackage):
if self.spec.satisfies('@:1.8.12+cxx~shared'):
cmake_flags.append(self.compiler.cxx_pic_flag)
elif name == "fflags":
+ if self.spec.satisfies('%cce+fortran'):
+ # Cray compiler generates module files with uppercase names by
+ # default, which is not handled by the CMake scripts. The
+ # following flag forces the compiler to produce module files
+ # with lowercase names.
+ cmake_flags.append('-ef')
if self.spec.satisfies('@:1.8.12+fortran~shared'):
cmake_flags.append(self.compiler.fc_pic_flag)
elif name == "ldlibs":