From e8ec3cfb0f299e06e9bf11ae51fbb9b8634766bf Mon Sep 17 00:00:00 2001 From: Harshula Jayasuriya Date: Tue, 20 Feb 2024 11:51:33 +1100 Subject: [PATCH] libaccessom2: explicitly set CMake compiler variables * 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), + ]