From 0f875bf67933bfe02247fdbc44fd219a8babcdb8 Mon Sep 17 00:00:00 2001 From: ct-clmsn Date: Fri, 13 Oct 2023 10:31:00 -0400 Subject: [PATCH] fixed MPI_CC detection issue --- cmake/HPX_SetupGasnet.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmake/HPX_SetupGasnet.cmake b/cmake/HPX_SetupGasnet.cmake index abe557f6c5b3..6f1c8420cf48 100644 --- a/cmake/HPX_SetupGasnet.cmake +++ b/cmake/HPX_SetupGasnet.cmake @@ -152,6 +152,12 @@ macro(hpx_setup_gasnet) message(FATAL_ERROR "GASNet MPI Conduit selected; MPI not found!") endif() + if(NOT ${MPI_C_COMPILER}) + set(CMAKE_C_COMPILER ${MPI_C_COMPILER}) + else() + message(FATAL_ERROR "GASNet MPI Conduit selected; $MPI_CC not found!") + endif() + execute_process( COMMAND bash -c