Skip to content

Commit

Permalink
libaccessom2: explicitly set CMake compiler variables
Browse files Browse the repository at this point in the history
* Thanks to Micael Oliveira for this suggestion.
  • Loading branch information
harshula committed Feb 20, 2024
1 parent 5669792 commit e8ec3cf
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 e8ec3cf

Please sign in to comment.