cgns package: don't use MPI wrappers on Windows (#42750)
This commit is contained in:
parent
e196978c7c
commit
e96640d2b9
1 changed files with 3 additions and 1 deletions
|
@ -7,6 +7,8 @@
|
||||||
|
|
||||||
from spack.package import *
|
from spack.package import *
|
||||||
|
|
||||||
|
is_windows = sys.platform == "win32"
|
||||||
|
|
||||||
|
|
||||||
class Cgns(CMakePackage):
|
class Cgns(CMakePackage):
|
||||||
"""The CFD General Notation System (CGNS) provides a general, portable,
|
"""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(
|
options.extend(
|
||||||
[
|
[
|
||||||
"-DCMAKE_C_COMPILER=%s" % spec["mpi"].mpicc,
|
"-DCMAKE_C_COMPILER=%s" % spec["mpi"].mpicc,
|
||||||
|
|
Loading…
Reference in a new issue