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):
|
def cmake_args(self):
|
||||||
from os.path import dirname
|
from os.path import dirname
|
||||||
|
|
||||||
|
spec = self.spec
|
||||||
args = []
|
args = []
|
||||||
|
|
||||||
# Compiler Information
|
# Compiler Information
|
||||||
@ -105,4 +106,8 @@ def cmake_args(self):
|
|||||||
if '-use_mpi_iallgather' in self.spec:
|
if '-use_mpi_iallgather' in self.spec:
|
||||||
args += ["-DUSE_MPI_IALLGATHER=OFF"]
|
args += ["-DUSE_MPI_IALLGATHER=OFF"]
|
||||||
|
|
||||||
|
# Only when using fujitsu compiler
|
||||||
|
if spec.satisfies('%fj'):
|
||||||
|
args += ["-DCMAKE_Fortran_MODDIR_FLAG=-M"]
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
Loading…
Reference in New Issue
Block a user