elsi:add CMAKE Fortran MODDIR FLAG for Fujitsu compiler (#13244)
* add CMAKE Fortran MODDIR FLAG for Fujitsu compiler * elsi:remove extra fix
This commit is contained in:
parent
0e3e1836ff
commit
7b62b64b03
@ -71,6 +71,7 @@ class Elsi(CMakePackage):
|
||||
def cmake_args(self):
|
||||
from os.path import dirname
|
||||
|
||||
spec = self.spec
|
||||
args = []
|
||||
|
||||
# Compiler Information
|
||||
@ -105,4 +106,8 @@ def cmake_args(self):
|
||||
if '-use_mpi_iallgather' in self.spec:
|
||||
args += ["-DUSE_MPI_IALLGATHER=OFF"]
|
||||
|
||||
# Only when using fujitsu compiler
|
||||
if spec.satisfies('%fj'):
|
||||
args += ["-DCMAKE_Fortran_MODDIR_FLAG=-M"]
|
||||
|
||||
return args
|
||||
|
Loading…
Reference in New Issue
Block a user