Commit b7d72817 authored by PRUVOST Florent's avatar PRUVOST Florent

refix the problem of starpu mpi function detection - with the complete path of...

refix the problem of starpu mpi function detection - with the complete path of mpi libraries the test fails... with -L/... and -l it succeeds
parent b1260737
......@@ -631,11 +631,12 @@ if (MORSE_DISTRIB_DIR OR EXISTS "${CMAKE_SOURCE_DIR}/cmake_modules/")
list(APPEND CMAKE_REQUIRED_INCLUDES "${MPI_C_INCLUDE_PATH}")
list(APPEND CMAKE_REQUIRED_FLAGS "${MPI_C_LINK_FLAGS}")
set(CMAKE_REQUIRED_LIBRARIES "${STARPU_LIBRARIES_DEP}")
# if (CHAMELEON_SIMULATION)
# set(CMAKE_REQUIRED_LIBRARIES "${STARPU_LIBRARIES_DEP}")
# else()
# set(CMAKE_REQUIRED_LIBRARIES "${STARPU_LIBRARIES_DEP} -lmpi")
# endif()
list(APPEND CMAKE_REQUIRED_LIBRARIES "${MPI_C_LIBRARIES}")
if (CHAMELEON_SIMULATION)
set(CMAKE_REQUIRED_LIBRARIES "${STARPU_LIBRARIES_DEP}")
else()
set(CMAKE_REQUIRED_LIBRARIES "${STARPU_LIBRARIES_DEP} -lmpi")
endif()
unset(STARPU_MPI_DATA_REGISTER_FOUND CACHE)
check_function_exists(starpu_mpi_data_register_comm STARPU_MPI_DATA_REGISTER_FOUND)
if ( STARPU_MPI_DATA_REGISTER_FOUND )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment