summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornoguchi-k <55966120+noguchi-k@users.noreply.github.com>2019-10-22 08:28:38 +0900
committerAdam J. Stewart <ajstewart426@gmail.com>2019-10-21 18:28:38 -0500
commit7b62b64b031f27a5317818f0246f9bb844862b39 (patch)
tree17c5465d27dc577a93b666013781bd3d77455a27
parent0e3e1836ff9f19664766299314f4afd1fbde08c0 (diff)
downloadspack-7b62b64b031f27a5317818f0246f9bb844862b39.tar.gz
spack-7b62b64b031f27a5317818f0246f9bb844862b39.tar.bz2
spack-7b62b64b031f27a5317818f0246f9bb844862b39.tar.xz
spack-7b62b64b031f27a5317818f0246f9bb844862b39.zip
elsi:add CMAKE Fortran MODDIR FLAG for Fujitsu compiler (#13244)
* add CMAKE Fortran MODDIR FLAG for Fujitsu compiler * elsi:remove extra fix
-rw-r--r--var/spack/repos/builtin/packages/elsi/package.py5
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