summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/amrex/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/amrex/package.py b/var/spack/repos/builtin/packages/amrex/package.py
index 234584927b..ef444cf39c 100644
--- a/var/spack/repos/builtin/packages/amrex/package.py
+++ b/var/spack/repos/builtin/packages/amrex/package.py
@@ -79,4 +79,7 @@ class Amrex(CMakePackage):
'-DENABLE_PARTICLES:BOOL=%s' % self.cmake_is_on('+particles'),
'-DENABLE_SUNDIALS:BOOL=%s' % self.cmake_is_on('+sundials')
]
+ if self.spec.satisfies('%fj'):
+ args.append('-DCMAKE_Fortran_MODDIR_FLAG=-M')
+
return args