summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Berger <rberger@lanl.gov>2024-05-17 05:01:09 -0600
committerGitHub <noreply@github.com>2024-05-17 13:01:09 +0200
commit2ef7eb1826046350b497a7405b29b59836d03b76 (patch)
treeab5b3c6b162c13762ee27addf31b1069cc1b87bb
parentfe86019f9a72d2d520f0e7a12cffa4ee4bd32b40 (diff)
downloadspack-2ef7eb1826046350b497a7405b29b59836d03b76.tar.gz
spack-2ef7eb1826046350b497a7405b29b59836d03b76.tar.bz2
spack-2ef7eb1826046350b497a7405b29b59836d03b76.tar.xz
spack-2ef7eb1826046350b497a7405b29b59836d03b76.zip
exodusii: only use MPI fortran compiler if +fortran (#44211)
-rw-r--r--var/spack/repos/builtin/packages/exodusii/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/exodusii/package.py b/var/spack/repos/builtin/packages/exodusii/package.py
index dbc60affbc..1b25757c3f 100644
--- a/var/spack/repos/builtin/packages/exodusii/package.py
+++ b/var/spack/repos/builtin/packages/exodusii/package.py
@@ -180,10 +180,11 @@ class Exodusii(CMakePackage):
[
define("CMAKE_C_COMPILER", spec["mpi"].mpicc),
define("CMAKE_CXX_COMPILER", spec["mpi"].mpicxx),
- define("CMAKE_Fortran_COMPILER", spec["mpi"].mpifc),
define("MPI_BASE_DIR", spec["mpi"].prefix),
]
)
+ if "+fortran" in self.spec:
+ options.append(define("CMAKE_Fortran_COMPILER", spec["mpi"].mpifc))
# ##################### Dependencies ##########################
# Always need NetCDF-C