cgns package: don't use MPI wrappers on Windows (#42750)

This commit is contained in:
John W. Parent 2024-02-21 13:10:48 -05:00 committed by GitHub
parent e196978c7c
commit e96640d2b9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,6 +7,8 @@
from spack.package import *
is_windows = sys.platform == "win32"
class Cgns(CMakePackage):
"""The CFD General Notation System (CGNS) provides a general, portable,
@ -93,7 +95,7 @@ def cmake_args(self):
]
)
if "+mpi" in spec:
if "+mpi" in spec and not is_windows:
options.extend(
[
"-DCMAKE_C_COMPILER=%s" % spec["mpi"].mpicc,