Commit 99e24b82 authored by PRUVOST Florent's avatar PRUVOST Florent

add some missing install library dirs in the RPATH

parent d1278fa1
......@@ -430,6 +430,14 @@ if(NOT CHAMELEON_SIMULATION)
endif (CUDA_FOUND)
list(APPEND EXTRA_LIBRARIES ${EXTRA_LIBRARIES_CUDA})
foreach (_lib ${EXTRA_LIBRARIES_CUDA})
if (EXISTS ${_lib})
get_filename_component(libdir ${_lib} PATH)
if (EXISTS ${libdir})
list(APPEND CMAKE_INSTALL_RPATH "${libdir}")
endif()
endif()
endforeach()
endif(CHAMELEON_USE_CUDA)
......@@ -463,6 +471,15 @@ if(NOT CHAMELEON_SIMULATION)
endif()
endif (MPI_C_FOUND)
foreach (_lib ${MPI_C_LIBRARIES})
if (EXISTS ${_lib})
get_filename_component(libdir ${_lib} PATH)
if (EXISTS ${libdir})
list(APPEND CMAKE_INSTALL_RPATH "${libdir}")
endif()
endif()
endforeach()
endif (CHAMELEON_USE_MPI)
else (NOT CHAMELEON_SIMULATION)
......@@ -569,6 +586,15 @@ else (NOT CHAMELEON_SIMULATION)
endif (CHAMELEON_USE_MPI)
foreach (_lib ${SIMGRID_LIBRARIES} ${MPI_C_LIBRARIES})
if (EXISTS ${_lib})
get_filename_component(libdir ${_lib} PATH)
if (EXISTS ${libdir})
list(APPEND CMAKE_INSTALL_RPATH "${libdir}")
endif()
endif()
endforeach()
endif(NOT CHAMELEON_SIMULATION)
......
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