Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Another attempt at getting the simgrid.jar working on Mac OSX
authorMartin Quinson <martin.quinson@loria.fr>
Thu, 1 Jun 2017 15:11:24 +0000 (17:11 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Thu, 1 Jun 2017 15:11:27 +0000 (17:11 +0200)
Fix the @rpath of the copy that will land into the jarfile, not the
original one.
(this is about #178)

tools/cmake/Java.cmake

index 7c422f3..0e77fab 100644 (file)
@@ -160,7 +160,7 @@ if(APPLE)
     #
     # This has to be done with the classical Apple tools, as follows:
 
     #
     # This has to be done with the classical Apple tools, as follows:
 
-    COMMAND install_name_tool -change ${CMAKE_BINARY_DIR}/lib/libsimgrid.${SIMGRID_VERSION_MAJOR}.${SIMGRID_VERSION_MINOR}${CMAKE_SHARED_LIBRARY_SUFFIX} @loader_path/libsimgrid.dylib ${CMAKE_BINARY_DIR}/lib/${LIBSIMGRID_JAVA_SO}
+    COMMAND install_name_tool -change ${CMAKE_BINARY_DIR}/lib/libsimgrid.${SIMGRID_VERSION_MAJOR}.${SIMGRID_VERSION_MINOR}${CMAKE_SHARED_LIBRARY_SUFFIX} @loader_path/libsimgrid.dylib ${JAVA_NATIVE_PATH}/${LIBSIMGRID_JAVA_SO}
   )
 endif()
 
   )
 endif()