]> AND Public Git Repository - simgrid.git/blobdiff - examples/java/kademlia/CMakeLists.txt
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Free allocated string.
[simgrid.git] / examples / java / kademlia / CMakeLists.txt
index 8b3833d73fc2c9e87023e8041ee1527b5b1d81b9..e7807e80b1eee9ac62719556a4edaf64d5c4b976 100644 (file)
@@ -20,8 +20,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