Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 6263f03e authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Merge branch 'pkg-config' into 'master'

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

See merge request !508
parents e40dd027 e1791e13
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)
)
if(CHAMELEON_USE_MPI)
if(${MPI_C_LIBRARIES} MATCHES "mpich")
if("${MPI_C_LIBRARIES}" MATCHES "mpich")
set(MPI_NAME "mpich")
elseif(${MPI_C_LIBRARIES} MATCHES "mvapich2")
elseif("${MPI_C_LIBRARIES}" MATCHES "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")
elseif(${MPI_C_LIBRARIES} MATCHES "openmpi")
elseif("${MPI_C_LIBRARIES}" MATCHES "openmpi")
set(MPI_NAME "ompi")
else()
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