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:
noguchi-k 2019-10-22 08:28:38 +09:00 committed by Adam J. Stewart
parent 0e3e1836ff
commit 7b62b64b03

View File

@ -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