X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/33928a4d5b5df43fb62fb0ce4aa69568545c9eeb..64916baf9d485ba6a2546bf79c948c591a233465:/tools/cmake/MakeLib.cmake?ds=sidebyside diff --git a/tools/cmake/MakeLib.cmake b/tools/cmake/MakeLib.cmake index f67255192a..0d157fe851 100644 --- a/tools/cmake/MakeLib.cmake +++ b/tools/cmake/MakeLib.cmake @@ -3,6 +3,12 @@ # On Mac OSX, specify that rpath is useful to look for the dependencies # See https://cmake.org/Wiki/CMake_RPATH_handling and Java.cmake set(MACOSX_RPATH ON) +if(APPLE) + # add the current location of libsimgrid-java.dynlib as a location for libsimgrid.dynlib + # (useful when unpacking the native libraries from the jarfile) + set(CMAKE_INSTALL_RPATH "@loader_path/.") + SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) +endif() ############################### # Declare the library content #