Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix bug windows msg-file
[simgrid.git] / examples / java / suspend / CMakeLists.txt
index 0ac2dfd6a7b70699c010d022f9e6663add957611..42cec94b844b2d2ba079e29c2146d7a84e239d21 100644 (file)
@@ -11,8 +11,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