diff --git a/packaging/install.cmake b/packaging/install.cmake index 8cf10b0b9..a62603b41 100644 --- a/packaging/install.cmake +++ b/packaging/install.cmake @@ -101,6 +101,10 @@ if(UNIX) file(READ ${PROJECT_SOURCE_DIR}/packaging/linux/common/khiops_env/export_env_variables.sh EXPORT_ENV_VARIABLES) elseif("${MPI_IMPL}" STREQUAL "mpich") set(MPIEXEC_HOSTFILE_FLAG "-f") + # Set localhost on MacOS (see issue # https://github.com/pmodels/mpich/issues/4710) + if(APPLE) + set(KHIOPS_MPI_EXTRA_FLAG "-host localhost") + endif(APPLE) endif() # Add header comment to the variable definition (if any variable is defined)