diff options
-rw-r--r-- | var/spack/repos/builtin/packages/elsi/package.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/elsi/package.py b/var/spack/repos/builtin/packages/elsi/package.py index 8d28f15133..34aeacffbe 100644 --- a/var/spack/repos/builtin/packages/elsi/package.py +++ b/var/spack/repos/builtin/packages/elsi/package.py @@ -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 @@ class Elsi(CMakePackage): 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 |