Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
New example for MSG host ON/OFF switching
[simgrid.git] / examples / java / chord / CMakeLists.txt
index 90167e8070d077b2cb1e7c3c0cbfe3526924833a..48b04399e219410a802e65b6d65208ce45a73504 100644 (file)
@@ -17,8 +17,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