From b72ae78e84f852a7997bf607c61f3954c517a6f7 Mon Sep 17 00:00:00 2001 From: Harshula Jayasuriya Date: Wed, 21 Feb 2024 12:08:45 +1100 Subject: [PATCH] libaccessom2: force CMake to use MPI compiler wrappers (#66) * Thanks to Micael Oliveira for this suggestion. --- packages/libaccessom2/package.py | 7 +++++++ 1 file changed, 7 insertions(+) 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), + ]