Mentions légales du service

Skip to content
Snippets Groups Projects
Commit e1791e13 authored by PRUVOST Florent's avatar PRUVOST Florent
Browse files

cmake: fix this if when MPI_C_LIBRARIES is made of a list of several...

cmake: fix this if when MPI_C_LIBRARIES is made of a list of several libraries. This fixes cmake with nmad/madmpi.
parent e40dd027
No related branches found
No related tags found
1 merge request!508cmake: fix this if when MPI_C_LIBRARIES is made of a list of several libraries
...@@ -109,13 +109,13 @@ macro(chameleon_generate_pkgconfig_files) ...@@ -109,13 +109,13 @@ macro(chameleon_generate_pkgconfig_files)
) )
if(CHAMELEON_USE_MPI) if(CHAMELEON_USE_MPI)
if(${MPI_C_LIBRARIES} MATCHES "mpich") if("${MPI_C_LIBRARIES}" MATCHES "mpich")
set(MPI_NAME "mpich") set(MPI_NAME "mpich")
elseif(${MPI_C_LIBRARIES} MATCHES "mvapich2") elseif("${MPI_C_LIBRARIES}" MATCHES "mvapich2")
set(MPI_NAME "mvapich2") set(MPI_NAME "mvapich2")
elseif(${MPI_C_LIBRARIES} MATCHES "madmpi" OR ${MPI_C_LIBRARIES} MATCHES "nmad") elseif("${MPI_C_LIBRARIES}" MATCHES "madmpi" OR "${MPI_C_LIBRARIES}" MATCHES "nmad")
set(MPI_NAME "nmad") set(MPI_NAME "nmad")
elseif(${MPI_C_LIBRARIES} MATCHES "openmpi") elseif("${MPI_C_LIBRARIES}" MATCHES "openmpi")
set(MPI_NAME "ompi") set(MPI_NAME "ompi")
else() else()
set(MPI_NAME "mpi") set(MPI_NAME "mpi")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment