summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Sjaardema <gsjaardema@gmail.com>2023-10-02 01:03:47 -0600
committerGitHub <noreply@github.com>2023-10-02 16:03:47 +0900
commite60bbd1bfc8c655090edb9935033221fce79cc5d (patch)
tree195b667a7700e524a8bf9e24bda0f917b06ad5d2
parent71c5b948d08c3212c715c6fc60390889014e0edb (diff)
downloadspack-e60bbd1bfc8c655090edb9935033221fce79cc5d.tar.gz
spack-e60bbd1bfc8c655090edb9935033221fce79cc5d.tar.bz2
spack-e60bbd1bfc8c655090edb9935033221fce79cc5d.tar.xz
spack-e60bbd1bfc8c655090edb9935033221fce79cc5d.zip
Cgns fix no fortran config (#40241)
* SEACAS: Update package.py to handle new SEACAS project name The base project name for the SEACAS project has changed from "SEACASProj" to "SEACAS" as of @2022-10-14, so the package needed to be updated to use the new project name when needed. The refactor also changes several: "-DSome_CMAKE_Option:BOOL=ON" to define("Some_CMAKE_Option", True) * CGNS: If fortran not enabled, do not specify parallel fortran compiler * Update package formatting as suggested by black * Accept suggested change
-rw-r--r--var/spack/repos/builtin/packages/cgns/package.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/var/spack/repos/builtin/packages/cgns/package.py b/var/spack/repos/builtin/packages/cgns/package.py
index 795af5b568..563dffd287 100644
--- a/var/spack/repos/builtin/packages/cgns/package.py
+++ b/var/spack/repos/builtin/packages/cgns/package.py
@@ -87,6 +87,7 @@ class Cgns(CMakePackage):
self.define_from_variant("CGNS_ENABLE_LEGACY", "legacy"),
self.define_from_variant("CGNS_ENABLE_MEM_DEBUG", "mem_debug"),
self.define_from_variant("CMAKE_POSITION_INDEPENDENT_CODE", "pic"),
+ self.define_from_variant("CGNS_ENABLE_64BIT", "int64"),
]
)
@@ -95,11 +96,10 @@ class Cgns(CMakePackage):
[
"-DCMAKE_C_COMPILER=%s" % spec["mpi"].mpicc,
"-DCMAKE_CXX_COMPILER=%s" % spec["mpi"].mpicxx,
- "-DCMAKE_Fortran_COMPILER=%s" % spec["mpi"].mpifc,
]
)
-
- options.append(self.define_from_variant("CGNS_ENABLE_64BIT", "int64"))
+ if "+fortran" in spec:
+ options.append(self.define("CMAKE_Fortran_COMPILER", spec["mpi"].mpifc))
if "+hdf5" in spec:
options.extend(