diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/conduit/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/conduit/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/conduit/package.py b/var/spack/repos/builtin/packages/conduit/package.py index dc824b8c92..ce6cee87ac 100644 --- a/var/spack/repos/builtin/packages/conduit/package.py +++ b/var/spack/repos/builtin/packages/conduit/package.py @@ -287,7 +287,10 @@ class Conduit(CMakePackage): ####################### c_compiler = env["SPACK_CC"] cpp_compiler = env["SPACK_CXX"] - f_compiler = env["SPACK_FC"] + if "+fortran" in spec: + f_compiler = env["SPACK_FC"] + else: + f_compiler = None ####################################################################### # Directly fetch the names of the actual compilers to create a |