hdf5: support for Cray Fortran Compiler (#25466)
This commit is contained in:
parent
b1755c4fb3
commit
c0bb2b9943
@ -202,6 +202,12 @@ def flag_handler(self, name, flags):
|
|||||||
if self.spec.satisfies('@:1.8.12+cxx~shared'):
|
if self.spec.satisfies('@:1.8.12+cxx~shared'):
|
||||||
cmake_flags.append(self.compiler.cxx_pic_flag)
|
cmake_flags.append(self.compiler.cxx_pic_flag)
|
||||||
elif name == "fflags":
|
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'):
|
if self.spec.satisfies('@:1.8.12+fortran~shared'):
|
||||||
cmake_flags.append(self.compiler.fc_pic_flag)
|
cmake_flags.append(self.compiler.fc_pic_flag)
|
||||||
elif name == "ldlibs":
|
elif name == "ldlibs":
|
||||||
|
Loading…
Reference in New Issue
Block a user