Skip to content

Commit

Permalink
fixed MPI_CC detection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-clmsn committed Oct 13, 2023
1 parent cc0240b commit 0f875bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/HPX_SetupGasnet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0f875bf

Please sign in to comment.