diff --git a/packages/libaccessom2/package.py b/packages/libaccessom2/package.py index 91b344b..2ba019d 100644 --- a/packages/libaccessom2/package.py +++ b/packages/libaccessom2/package.py @@ -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), + ]