Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
I hope I understood how to use RPATH on Mac OSX
[simgrid.git] / tools / cmake / MakeLib.cmake
index 278b589..f672551 100644 (file)
@@ -1,8 +1,8 @@
 ### Make Libs
 
-# On Mac OSX, don't specify where to look for the dependencies
-# Otherwise, the libsimgrid-java will not find libsimgrid, as it is located in a temporary directory
-set(MACOSX_RPATH 0)
+# 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)
 
 ###############################
 # Declare the library content #