DTK: specify MPI compilers (#42592)

Co-authored-by: balay <balay@users.noreply.github.com>
This commit is contained in:
Satish Balay 2024-02-19 07:24:28 -06:00 committed by GitHub
parent 4d051eb6ff
commit a0e80b23b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,6 +35,7 @@ class Datatransferkit(CMakePackage):
variant("serial", default=True, description="enable Serial backend (default)") variant("serial", default=True, description="enable Serial backend (default)")
variant("shared", default=True, description="enable the build of shared lib") variant("shared", default=True, description="enable the build of shared lib")
depends_on("mpi")
depends_on("arborx@1.0:", when="+external-arborx") depends_on("arborx@1.0:", when="+external-arborx")
depends_on("boost") depends_on("boost")
depends_on("cmake", type="build") depends_on("cmake", type="build")
@ -56,6 +57,10 @@ def cmake_args(self):
"-DDataTransferKit_ENABLE_EXAMPLES=OFF", "-DDataTransferKit_ENABLE_EXAMPLES=OFF",
"-DCMAKE_CXX_EXTENSIONS=OFF", "-DCMAKE_CXX_EXTENSIONS=OFF",
"-DCMAKE_CXX_STANDARD=14", "-DCMAKE_CXX_STANDARD=14",
"-DCMAKE_C_COMPILER=" + spec["mpi"].mpicc,
"-DCMAKE_CXX_COMPILER=" + spec["mpi"].mpicxx,
"-DCMAKE_Fortran_COMPILER=" + spec["mpi"].mpifc,
"-DMPI_BASE_DIR=" + spec["mpi"].prefix,
] ]
if "+openmp" in spec: if "+openmp" in spec: