Skip to content

Commit

Permalink
libaccessom2: force CMake to use MPI compiler wrappers (#66)
Browse files Browse the repository at this point in the history
* Thanks to Micael Oliveira for this suggestion.
  • Loading branch information
harshula authored Feb 21, 2024
1 parent 5669792 commit b72ae78
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions packages/libaccessom2/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,10 @@ def patch(self):
"",
"CMakeLists.txt"
)

def cmake_args(self):
return [
self.define("CMAKE_C_COMPILER", self.spec["mpi"].mpicc),
self.define("CMAKE_CXX_COMPILER", self.spec["mpi"].mpicxx),
self.define("CMAKE_Fortran_COMPILER", self.spec["mpi"].mpifc),
]

0 comments on commit b72ae78

Please sign in to comment.