summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/ascent/package.py
diff options
context:
space:
mode:
authorChris White <white238@llnl.gov>2022-04-28 07:09:40 -0700
committerGitHub <noreply@github.com>2022-04-28 07:09:40 -0700
commit2e9da47a2df49a0c78545ee563592c495d4e19f8 (patch)
tree9a05ad2c22d143b9461538ffcf3a4b20bc38e255 /var/spack/repos/builtin/packages/ascent/package.py
parent3e863848f8f9acd421daed7fe4d0c2578787c06e (diff)
downloadspack-2e9da47a2df49a0c78545ee563592c495d4e19f8.tar.gz
spack-2e9da47a2df49a0c78545ee563592c495d4e19f8.tar.bz2
spack-2e9da47a2df49a0c78545ee563592c495d4e19f8.tar.xz
spack-2e9da47a2df49a0c78545ee563592c495d4e19f8.zip
Ascent/Conduit: re-add fortran compiler that was mistakenly removed (#30351)
Diffstat (limited to 'var/spack/repos/builtin/packages/ascent/package.py')
-rw-r--r--var/spack/repos/builtin/packages/ascent/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/ascent/package.py b/var/spack/repos/builtin/packages/ascent/package.py
index 78f70baf2e..593c0f2596 100644
--- a/var/spack/repos/builtin/packages/ascent/package.py
+++ b/var/spack/repos/builtin/packages/ascent/package.py
@@ -303,6 +303,7 @@ class Ascent(CMakePackage, CudaPackage):
#######################
c_compiler = env["SPACK_CC"]
cpp_compiler = env["SPACK_CXX"]
+ f_compiler = env["SPACK_FC"]
#######################################################################
# Directly fetch the names of the actual compilers to create a
@@ -354,6 +355,8 @@ class Ascent(CMakePackage, CudaPackage):
cfg.write("# fortran compiler used by spack\n")
if "+fortran" in spec:
cfg.write(cmake_cache_entry("ENABLE_FORTRAN", "ON"))
+ cfg.write(cmake_cache_entry("CMAKE_Fortran_COMPILER",
+ f_compiler))
else:
cfg.write(cmake_cache_entry("ENABLE_FORTRAN", "OFF"))