Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Doc to install libboost on osX
[simgrid.git] / examples / java / master_slave_bypass / CMakeLists.txt
index 9b18ca45d2c4205e4e0bec5634cd882fde88eca0..4660c437dc121d1007e5cd4f0a01667a6d53148f 100644 (file)
@@ -12,8 +12,8 @@ if(enable_java)
   add_custom_command(
     COMMENT "Building ${example}..."
     OUTPUT ${example}_compiled
-    DEPENDS ${sources} SG_java_jar ${SIMGRID_JAR}
-    COMMAND ${JAVA_COMPILE} -cp ${SIMGRID_JAR}
+    DEPENDS ${sources} simgrid-java_jar ${SIMGRID_JAR}
+    COMMAND ${JAVA_COMPILE} -classpath ${SIMGRID_JAR}
                              -d ${CMAKE_CURRENT_BINARY_DIR}/.. ${sources}
     COMMAND ${CMAKE_COMMAND} -E remove ${example}_compiled
     COMMAND ${CMAKE_COMMAND} -E touch ${example}_compiled